summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-16 08:30:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-16 08:30:06 +0200
commit0ce0201f35bd4ed5d885b7856b0e2d74bba66e56 (patch)
treefc74541c404122ea486d435d00d06663e2d99696
parentb844769a6d9e8290325774fe401675022efc553d (diff)
ui: update profile title
Fixes: #191
-rw-r--r--facetracknoir/ui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp
index 6afb3475..1f403925 100644
--- a/facetracknoir/ui.cpp
+++ b/facetracknoir/ui.cpp
@@ -445,6 +445,10 @@ void MainWindow::profileSelected(int index)
settings.setValue (OPENTRACK_CONFIG_FILENAME_KEY, remove_app_path(QFileInfo(group::ini_pathname()).absolutePath() + "/" +
ui.iconcomboProfile->itemText(index)));
}
+
+ QString current = QFileInfo(group::ini_pathname()).fileName();
+ setWindowTitle(QString( const_cast<const char*>(opentrack_version) + QStringLiteral(" :: ")) + current);
+
load_settings();
}