diff options
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 8dcb59c90..de98eb08f 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -1308,12 +1308,12 @@ int MainWindow::file_save(void) void MainWindow::showError(QString message) { - if (message.isEmpty()) - return; - ui.mainErrorMessage->setText(message); - ui.mainErrorMessage->setCloseButtonVisible(true); - ui.mainErrorMessage->setMessageType(KMessageWidget::Error); - ui.mainErrorMessage->animatedShow(); + ui.mainErrorMessage->showNotification(message, KMessageWidget::Error); +} + +NotificationWidget *MainWindow::getNotificationWidget() +{ + return ui.mainErrorMessage; } void MainWindow::setTitle(enum MainWindowTitleFormat format) |