From 05d7953bebb5bdbb4cf82a72f47347eec0e1d3bb Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 20 Oct 2005 14:16:21 +0000 Subject: [PATCH] To make possible to leave a message in the status bar till the next one is set. --- src/SUIT/SUIT_Application.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SUIT/SUIT_Application.cxx b/src/SUIT/SUIT_Application.cxx index f9d210d55..380820055 100755 --- a/src/SUIT/SUIT_Application.cxx +++ b/src/SUIT/SUIT_Application.cxx @@ -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())); } } -- 2.39.2