Clear message before showing a new one.
This commit is contained in:
parent
99b9419150
commit
4ebdcf56a0
@ -224,6 +224,7 @@ void MainWindow::onReplaceLast(QString text, QString suffix) {
|
||||
}
|
||||
|
||||
void MainWindow::onShowErrorMessage(QString title, QString text) {
|
||||
this->statusBar()->showMessage( // timeout: 5000
|
||||
QString(title + ": " + text).leftJustified(80, ' '), 20000);
|
||||
this->statusBar()->clearMessage();
|
||||
this->statusBar()->showMessage( // timeout: 10000
|
||||
QString(title + ": " + text).leftJustified(80, ' '), 10000);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user