aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/main.cpp2
-rw-r--r--config/settingsdialog.cpp6
2 files changed, 2 insertions, 6 deletions
diff --git a/config/main.cpp b/config/main.cpp
index 569249c..2597e35 100644
--- a/config/main.cpp
+++ b/config/main.cpp
@@ -22,7 +22,7 @@ int main(int argc, char **argv)
SettingsDialog dlg(&config);
dlg.configPath = QString::fromStdString(config.value<std::string>("config").value());
- dlg.setWindowTitle("poi-config: " + dlg.configPath);
+ dlg.setWindowTitle(dlg.configPath);
dlg.show();
return app.exec();
diff --git a/config/settingsdialog.cpp b/config/settingsdialog.cpp
index cc8cb8e..5ff4328 100644
--- a/config/settingsdialog.cpp
+++ b/config/settingsdialog.cpp
@@ -94,9 +94,5 @@ void SettingsDialog::write(const QString &path)
output.close();
unsavedChanges = false;
- if(windowTitle().endsWith('*')) {
- QString title = windowTitle();
- title.chop(1);
- setWindowTitle(title);
- }
+ setWindowTitle(configPath);
}