diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-12-11 17:43:53 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-12-11 23:10:09 -0600 |
commit | 4ac5b9c9654e6d561c05451888f337de2d1b7cf7 (patch) | |
tree | 726d480ed8ca854b6d98e068fb04db0a0038a4fd /subsurface-desktop-helper.cpp | |
parent | 931bcc196644c79e1064a9cb1b9c80e82fe0ed06 (diff) | |
download | subsurface-4ac5b9c9654e6d561c05451888f337de2d1b7cf7.tar.gz |
Simplify mainwindow title logic: remove MainWindowTitleFormat enum
The MainWindow::setTitle() function was passed an enum, which depended
on whether existing_file is set or not. The check can be (and was!) done
directly in setTitle(). Therefore, remove the whole enum.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'subsurface-desktop-helper.cpp')
-rw-r--r-- | subsurface-desktop-helper.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/subsurface-desktop-helper.cpp b/subsurface-desktop-helper.cpp index 8356b9fe8..924352c16 100644 --- a/subsurface-desktop-helper.cpp +++ b/subsurface-desktop-helper.cpp @@ -33,10 +33,7 @@ void init_ui() PluginManager::instance().loadPlugins(); window = new MainWindow(); - if (existing_filename && existing_filename[0] != '\0') - window->setTitle(MWTF_FILENAME); - else - window->setTitle(MWTF_DEFAULT); + window->setTitle(); } void run_ui() |