From dda3253b77553e50dee379913c46cfaeb7468ecb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 22 Sep 2013 08:30:25 -0700 Subject: Only load default file if no file is given on the command line Signed-off-by: Dirk Hohndel --- main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'main.cpp') 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) ); -- cgit v1.2.3-70-g09d2