diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-10-05 23:52:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-06 00:01:30 +0100 |
commit | d567859e87983f89859576e745f2678806875ecb (patch) | |
tree | b652c08538062a3a4777463cd5bc49308a378076 /main.cpp | |
parent | 05f4f9b5336412a222672f460d87740f8ce7866c (diff) | |
download | subsurface-d567859e87983f89859576e745f2678806875ecb.tar.gz |
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>
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -69,11 +69,13 @@ int main(int argc, char **argv) files.push_back(cloudURL); } } - MainWindow *m = MainWindow::instance(); m->setLoadedWithFiles(!files.isEmpty() || !importedFiles.isEmpty()); m->loadFiles(files); m->importFiles(importedFiles); + // in case something has gone wrong make sure we show the error message + m->showError(); + if (verbose > 0) print_files(); if (!quit) |