From 2050f635ff0665bbf19a318382570380614a1b8d Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Wed, 18 Jul 2018 11:24:22 +0300 Subject: [PATCH] Added comparison to true in the condition that is checked when the timeout () slot is invoked --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4ca2ca5..01f1212 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -33,7 +33,7 @@ void MainWindow::on_connectToPeer_clicked() void MainWindow::slotTimerAlarm() { - if(receive) + if(receive == true) { timer->stop(); receive = false;