mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Show error messages during start up as soon as the main window is shown
When the user has setup cloud storage as their default file but didn't store the cloud storage password an error is created but not shown until another error happens - that's very confusing for the user. This patch fixes that. Fixes #938 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
05f4f9b533
commit
d567859e87
3 changed files with 9 additions and 1 deletions
|
@ -1511,6 +1511,11 @@ NotificationWidget *MainWindow::getNotificationWidget()
|
|||
return ui.mainErrorMessage;
|
||||
}
|
||||
|
||||
void MainWindow::showError()
|
||||
{
|
||||
getNotificationWidget()->showNotification(get_error_string(), KMessageWidget::Error);
|
||||
}
|
||||
|
||||
QString MainWindow::displayedFilename(QString fullFilename)
|
||||
{
|
||||
QFile f(fullFilename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue