From 4a38778808cf94e79cd3e360b78b858815724090 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Mon, 15 Oct 2018 02:10:48 -0400 Subject: [PATCH] Removed single shot timer from gui loop --- mainwindow.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 5d99c49..7ede28a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4474,18 +4474,16 @@ void MainWindow::guiUpdate() // once per second...but not when we're transmitting if(!m_transmitting){ - QTimer::singleShot(0, this, [this, forceDirty](){ - // process all received activity... - processActivity(forceDirty); + // process all received activity... + processActivity(forceDirty); - // process outgoing tx queue... - processTxQueue(); + // process outgoing tx queue... + processTxQueue(); - // once processed, lets update the display... - displayActivity(forceDirty); - updateButtonDisplay(); - updateTextDisplay(); - }); + // once processed, lets update the display... + displayActivity(forceDirty); + updateButtonDisplay(); + updateTextDisplay(); } }