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()));
}
}