Skip to content

Commit

Permalink
Merge pull request #372 from badloop/fixSiteParsing
Browse files Browse the repository at this point in the history
fix: rfind to find for more consistent site parsing
  • Loading branch information
dpaulat authored Feb 17, 2025
2 parents efb54b1 + e189abe commit 501ea22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scwx-qt/source/scwx/qt/ui/settings_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 501ea22

Please sign in to comment.