summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-26 19:53:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-27 09:37:13 +0200
commit8adcd7acc7280c84a959db0da2d79a0ed918a1ca (patch)
treef52b9356352d83475378cbc91d7037e5a84a53ec /facetracknoir
parent4b9e2b009fbc290d5108b8a83010dcbf2c5841e2 (diff)
options: return .ini basename easier
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/ui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp
index 6aa47fb6..15c94bd7 100644
--- a/facetracknoir/ui.cpp
+++ b/facetracknoir/ui.cpp
@@ -203,7 +203,7 @@ void MainWindow::refresh_config_list()
QStringList ini_list = group::ini_list();
set_title();
- QString current = QFileInfo(group::ini_pathname()).fileName();
+ QString current = group::ini_filename();
ui.iconcomboProfile->clear();
for (auto x : ini_list)
ui.iconcomboProfile->addItem(QIcon(":/images/settings16.png"), x);
@@ -343,7 +343,7 @@ void MainWindow::set_title(const QString& game_title_)
QString game_title;
if (game_title_ != "")
game_title = " :: " + game_title_;
- QString current = QFileInfo(group::ini_pathname()).fileName();
+ QString current = group::ini_filename();
setWindowTitle(const_cast<const char*>(opentrack_version) + QStringLiteral(" :: ") + current + game_title);
}