Added comparison to true in the condition that is checked when the timeout () slot is invoked

This commit is contained in:
Denis Davydov 2018-07-18 11:24:22 +03:00
parent 6aefbb153b
commit 2050f635ff

View File

@ -33,7 +33,7 @@ void MainWindow::on_connectToPeer_clicked()
void MainWindow::slotTimerAlarm() void MainWindow::slotTimerAlarm()
{ {
if(receive) if(receive == true)
{ {
timer->stop(); timer->stop();
receive = false; receive = false;