diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-09-22 08:30:25 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-09-22 08:32:11 -0700 |
commit | dda3253b77553e50dee379913c46cfaeb7468ecb (patch) | |
tree | 30ad23618ec39a3263b360d70c26b938a1959042 /main.cpp | |
parent | 3335f083bffdafdea75b3782873621d5beb77ec3 (diff) | |
download | subsurface-dda3253b77553e50dee379913c46cfaeb7468ecb.tar.gz |
Only load default file if no file is given on the command line
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -16,7 +16,7 @@ int main(int argc, char **argv) { int i; - bool no_filenames = TRUE; + bool no_filenames = true; const char *path; /* set up l18n - the search directory needs to change @@ -43,10 +43,12 @@ int main(int argc, char **argv) parse_argument(a); continue; } - if (imported) + if (imported) { importedFiles.push_back( QString(a) ); - else + } else { + no_filenames = false; files.push_back( QString(a) ); + } } if (no_filenames) { files.push_back( QString(prefs.default_filename) ); |