diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-04 11:12:11 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-04 11:12:11 -0700 |
commit | f63605e02e4656b60c6c095f4289dbffa293bc2d (patch) | |
tree | 93fd7eed42b5893226d75296b8ed1381134b7833 /main.cpp | |
parent | 9035e1b53cb97464662343012da47f9cb13a5124 (diff) | |
parent | 834800a1794f1ed92f447a2995767ce820473fed (diff) | |
download | subsurface-f63605e02e4656b60c6c095f4289dbffa293bc2d.tar.gz |
Merge branch 'bugfixes' of git://github.com/tcanabrava/subsurface
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -52,9 +52,10 @@ int main(int argc, char **argv) } } if (no_filenames) { - files.push_back( QString(prefs.default_filename) ); + QString defaultFile(prefs.default_filename); + if (!defaultFile.isEmpty()) + files.push_back( QString(prefs.default_filename) ); } - parse_xml_exit(); subsurface_command_line_exit(&argc, &argv); mainWindow()->loadFiles(files); |