aboutsummaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 2474d407d..eab282dc0 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -75,6 +75,10 @@ void init_qt_ui(int *argcp, char ***argvp, char *errormessage)
MainWindow *window = new MainWindow();
window->showError(errormessage);
window->show();
+ if (existing_filename && existing_filename[0] != '\0')
+ window->setTitle(MWTF_FILENAME);
+ else
+ window->setTitle(MWTF_DEFAULT);
}
const char *getSetting(QSettings &s, QString name)