]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To make possible to leave a message in the status bar till the next one is set.
authorapo <apo@opencascade.com>
Thu, 20 Oct 2005 14:16:21 +0000 (14:16 +0000)
committerapo <apo@opencascade.com>
Thu, 20 Oct 2005 14:16:21 +0000 (14:16 +0000)
src/SUIT/SUIT_Application.cxx

index f9d210d5527226be6fa2b377f45edcf612ad43e4..38082005581f8c940770b37fbf0aa0c73e2d7d2e 100755 (executable)
@@ -99,7 +99,8 @@ void SUIT_Application::putInfo ( const QString& msg, const int msec )
       desktop()->statusBar()->addWidget(myStatusLabel, /*int stretch = */1);
     }
     myStatusLabel->setText(msg);
-    QTimer::singleShot(msec <= 0 ? DEFAULT_MESSAGE_DELAY : msec, myStatusLabel, SLOT(clear()));
+    if( msec != -1 )
+      QTimer::singleShot(msec <= 0 ? DEFAULT_MESSAGE_DELAY : msec, myStatusLabel, SLOT(clear()));
   }
 }