diff options
Diffstat (limited to 'subsurface-desktop-main.cpp')
-rw-r--r-- | subsurface-desktop-main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp index a40edda1b..725011fc2 100644 --- a/subsurface-desktop-main.cpp +++ b/subsurface-desktop-main.cpp @@ -21,6 +21,8 @@ QTranslator *qtTranslator, *ssrfTranslator; +static bool filesOnCommandLine = false; + int main(int argc, char **argv) { int i; @@ -77,7 +79,7 @@ int main(int argc, char **argv) } } MainWindow *m = MainWindow::instance(); - m->setLoadedWithFiles(!files.isEmpty() || !importedFiles.isEmpty()); + filesOnCommandLine = !files.isEmpty() || !importedFiles.isEmpty(); m->loadFiles(files); m->importFiles(importedFiles); // in case something has gone wrong make sure we show the error message @@ -98,3 +100,8 @@ int main(int argc, char **argv) free_prefs(); return 0; } + +bool haveFilesOnCommandLine() +{ + return filesOnCommandLine; +} |