summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index c288f68dc..6c5e16928 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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)