summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 229696055..e5a53a3d8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -48,8 +48,10 @@ int main(int argc, char **argv)
files.push_back(QString(prefs.default_filename));
}
parse_xml_exit();
- MainWindow::instance()->loadFiles(files);
- MainWindow::instance()->importFiles(importedFiles);
+ MainWindow *m = MainWindow::instance();
+ m->setLoadedWithFiles( !files.isEmpty() || !importedFiles.isEmpty());
+ m->loadFiles(files);
+ m->importFiles(importedFiles);
if (!quit)
run_ui();
exit_ui();