comparison framework/MainWindowBase.cpp @ 375:20bab95852c1

Only update message if it has actually changed (not that this seems to make any difference to anything)
author Chris Cannam
date Tue, 01 Jul 2014 15:33:24 +0100
parents 534bd1def9ee
children a7a643988390
comparison
equal deleted inserted replaced
374:534bd1def9ee 375:20bab95852c1
3270 } 3270 }
3271 3271
3272 void 3272 void
3273 MainWindowBase::contextHelpChanged(const QString &s) 3273 MainWindowBase::contextHelpChanged(const QString &s)
3274 { 3274 {
3275 QStatusBar *bar = statusBar();
3276
3275 if (s == "" && m_myStatusMessage != "") { 3277 if (s == "" && m_myStatusMessage != "") {
3276 statusBar()->showMessage(m_myStatusMessage); 3278 if (bar->currentMessage() != m_myStatusMessage) {
3279 bar->showMessage(m_myStatusMessage);
3280 }
3277 return; 3281 return;
3278 } 3282 }
3279 statusBar()->showMessage(s); 3283
3284 bar->showMessage(s);
3280 } 3285 }
3281 3286
3282 void 3287 void
3283 MainWindowBase::openHelpUrl(QString url) 3288 MainWindowBase::openHelpUrl(QString url)
3284 { 3289 {