diff --git a/app/core.cpp b/app/core.cpp index 3f9f0c1a7..aa5ccf066 100644 --- a/app/core.cpp +++ b/app/core.cpp @@ -1078,9 +1078,9 @@ bool Core::SaveProject(Project* p) } } -void Core::ShowStatusBarMessage(const QString &s) +void Core::ShowStatusBarMessage(const QString &s, int timeout) { - main_window_->statusBar()->showMessage(s); + main_window_->statusBar()->showMessage(s, timeout); } void Core::OpenRecoveryProject(const QString &filename) diff --git a/app/core.h b/app/core.h index 58eed4514..a8a18981c 100644 --- a/app/core.h +++ b/app/core.h @@ -296,7 +296,7 @@ public: * * Shorthand for Core::instance()->main_window()->statusBar()->showMessage(); */ - void ShowStatusBarMessage(const QString& s); + void ShowStatusBarMessage(const QString& s, int timeout = 0); void OpenRecoveryProject(const QString& filename);