comparison main/MainWindow.cpp @ 737:48bd87b0a84e

Only update message if it has actually changed
author Chris Cannam
date Tue, 01 Jul 2014 15:33:51 +0100
parents 73a5884a0975
children 1192963e2d83
comparison
equal deleted inserted replaced
736:2700e13716ef 737:48bd87b0a84e
3932 } else { 3932 } else {
3933 m_myStatusMessage = tr("Visible: %1 to %2 (duration %3)") 3933 m_myStatusMessage = tr("Visible: %1 to %2 (duration %3)")
3934 .arg(startStr).arg(endStr).arg(durationStr); 3934 .arg(startStr).arg(endStr).arg(durationStr);
3935 } 3935 }
3936 3936
3937 statusBar()->showMessage(m_myStatusMessage); 3937 if (statusBar()->currentMessage() != m_myStatusMessage) {
3938 statusBar()->showMessage(m_myStatusMessage);
3939 }
3938 3940
3939 updatePositionStatusDisplays(); 3941 updatePositionStatusDisplays();
3940 } 3942 }
3941 3943
3942 void 3944 void