Clear message before showing a new one.

This commit is contained in:
Gerhard Hoffmann 2023-08-22 12:21:17 +02:00
parent 99b9419150
commit 4ebdcf56a0

View File

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