From 322e29e53c91f8092369fd21edfbc6050fea7107 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Tue, 25 Jan 2022 14:12:22 +0100 Subject: [PATCH] Show the full filename to configuration files in the Launcher --- apps/OpenSpace/ext/launcher/src/launcherwindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/OpenSpace/ext/launcher/src/launcherwindow.cpp b/apps/OpenSpace/ext/launcher/src/launcherwindow.cpp index a5885b2d41..ffd0261439 100644 --- a/apps/OpenSpace/ext/launcher/src/launcherwindow.cpp +++ b/apps/OpenSpace/ext/launcher/src/launcherwindow.cpp @@ -397,7 +397,7 @@ void LauncherWindow::populateWindowConfigsList(std::string preset) { if (p.path().extension() != ".xml" && p.path().extension() != ".json") { continue; } - _windowConfigBox->addItem(QString::fromStdString(p.path().stem().string())); + _windowConfigBox->addItem(QString::fromStdString(p.path().filename().string())); ++_userConfigCount; } _windowConfigBox->addItem(QString::fromStdString("--- OpenSpace Configurations ---")); @@ -410,7 +410,9 @@ void LauncherWindow::populateWindowConfigsList(std::string preset) { if (p.path().extension() != ".xml" && p.path().extension() != ".json") { continue; } - _windowConfigBox->addItem(QString::fromStdString(p.path().stem().string())); + _windowConfigBox->addItem( + QString::fromStdString(p.path().filename().string()) + ); } } else { @@ -434,7 +436,7 @@ void LauncherWindow::populateWindowConfigsList(std::string preset) { } } -void LauncherWindow::openProfileEditor(const std::string& profile, const bool isUserProfile) { +void LauncherWindow::openProfileEditor(const std::string& profile, bool isUserProfile) { std::optional p; std::string saveProfilePath = isUserProfile ? _userProfilePath : _profilePath; if (profile.empty()) {