From e189abea4d9af2e19a4df2c0708b8d79b79d8d49 Mon Sep 17 00:00:00 2001 From: Aaron Dunlap Date: Mon, 17 Feb 2025 14:00:18 -0600 Subject: [PATCH] fix: rfind to find for more consistent site parsing --- scwx-qt/source/scwx/qt/ui/settings_dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scwx-qt/source/scwx/qt/ui/settings_dialog.cpp b/scwx-qt/source/scwx/qt/ui/settings_dialog.cpp index b3cbb427..5491bb21 100644 --- a/scwx-qt/source/scwx/qt/ui/settings_dialog.cpp +++ b/scwx-qt/source/scwx/qt/ui/settings_dialog.cpp @@ -639,7 +639,7 @@ void SettingsDialogImpl::SetupGeneralTab() [](const std::string& text) -> std::string { // Find the position of location details - size_t pos = text.rfind(" ("); + size_t pos = text.find(" ("); if (pos == std::string::npos) { @@ -1060,7 +1060,7 @@ void SettingsDialogImpl::SetupAudioTab() [](const std::string& text) -> std::string { // Find the position of location details - size_t pos = text.rfind(" ("); + size_t pos = text.find(" ("); if (pos == std::string::npos) {