summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-22 08:30:25 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-22 08:32:11 -0700
commitdda3253b77553e50dee379913c46cfaeb7468ecb (patch)
tree30ad23618ec39a3263b360d70c26b938a1959042 /main.cpp
parent3335f083bffdafdea75b3782873621d5beb77ec3 (diff)
downloadsubsurface-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.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index 83c0e12de..98907ca8d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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) );