mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
3335f083bf
commit
dda3253b77
1 changed files with 5 additions and 3 deletions
8
main.cpp
8
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,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) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue