Only load default file if no file is given on the command line

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-09-22 08:30:25 -07:00
parent 3335f083bf
commit dda3253b77

View file

@ -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,11 +43,13 @@ 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) );
}