refs #336 CStatusMessage keeps track of which objects have handled it, to avoid duplicate handlings of the same message.

This commit is contained in:
Mathew Sutcliffe
2014-10-12 20:28:13 +01:00
parent 09685e8b37
commit 8992bd734c
5 changed files with 41 additions and 2 deletions

View File

@@ -300,6 +300,9 @@ void MainWindow::ps_displayStatusMessageInGui(const CStatusMessage &statusMessag
if (statusMessage.isRedundant()) return;
if (statusMessage.getSeverity() == CStatusMessage::SeverityDebug) return;
if (statusMessage.wasHandledBy(this)) return;
statusMessage.markAsHandledBy(this);
if (!this->m_init) return;
this->ui->sb_MainStatusBar->show();
this->m_timerStatusBar->start(3000);