From 3f9e82ebf8c6af1e3120d109652d97d19103b47b Mon Sep 17 00:00:00 2001 From: Xian Nox Date: Wed, 18 Dec 2013 21:18:25 +0100 Subject: [PATCH] Added 500ms delay to message popups --- src/mainwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp index cacf6b5..00db5cc 100644 --- a/src/mainwidget.cpp +++ b/src/mainwidget.cpp @@ -197,6 +197,9 @@ void MainWidget::createTrayIcon() void MainWidget::receiveMessage(QString message) { + // a timeout is added before the popups are displayed to prevent them from + // appearing in the wrong location + Sleeper::msleep(500); if(trayIcon->isVisible()) { trayIcon->showMessage(tr("Information"), message); }