diff main/MainWindow.cpp @ 739:1192963e2d83

Fix #1024 - avoid status bar repainting all its siblings when its message changes (and it resizes) by using a widget in the status bar for the label instead of the bar itself.
author Chris Cannam
date Wed, 02 Jul 2014 15:09:51 +0100
parents 48bd87b0a84e
children 61c0f32d93b3
line wrap: on
line diff
--- a/main/MainWindow.cpp	Tue Jul 01 15:34:11 2014 +0100
+++ b/main/MainWindow.cpp	Wed Jul 02 15:09:51 2014 +0100
@@ -3934,8 +3934,8 @@
             .arg(startStr).arg(endStr).arg(durationStr);
     }
 
-    if (statusBar()->currentMessage() != m_myStatusMessage) {
-        statusBar()->showMessage(m_myStatusMessage);
+    if (getStatusLabel()->text() != m_myStatusMessage) {
+        getStatusLabel()->setText(m_myStatusMessage);
     }
 
     updatePositionStatusDisplays();