# HG changeset patch # User Chris Cannam # Date 1404225204 -3600 # Node ID 20bab95852c1d7cb55541ae32f83210dec91892a # Parent 534bd1def9eea15cf999894d76244f808b955561 Only update message if it has actually changed (not that this seems to make any difference to anything) diff -r 534bd1def9ee -r 20bab95852c1 framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Thu Jun 19 14:44:47 2014 +0100 +++ b/framework/MainWindowBase.cpp Tue Jul 01 15:33:24 2014 +0100 @@ -3272,11 +3272,16 @@ void MainWindowBase::contextHelpChanged(const QString &s) { + QStatusBar *bar = statusBar(); + if (s == "" && m_myStatusMessage != "") { - statusBar()->showMessage(m_myStatusMessage); + if (bar->currentMessage() != m_myStatusMessage) { + bar->showMessage(m_myStatusMessage); + } return; } - statusBar()->showMessage(s); + + bar->showMessage(s); } void