diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-16 08:30:06 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-16 08:30:06 +0200 |
commit | 0ce0201f35bd4ed5d885b7856b0e2d74bba66e56 (patch) | |
tree | fc74541c404122ea486d435d00d06663e2d99696 /facetracknoir/ui.cpp | |
parent | b844769a6d9e8290325774fe401675022efc553d (diff) |
ui: update profile title
Fixes: #191
Diffstat (limited to 'facetracknoir/ui.cpp')
-rw-r--r-- | facetracknoir/ui.cpp | 4 |
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(); } |