From 6075112ea0cffdea144d97a90603b0eaf824a2d2 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 4 Aug 2020 14:45:09 +0100 Subject: [PATCH] Fix typo in resetting selection after rebuilding colour theme popup. --- common/dialogs/panel_color_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/dialogs/panel_color_settings.cpp b/common/dialogs/panel_color_settings.cpp index 2112dd84fd..cfe84fb2c7 100644 --- a/common/dialogs/panel_color_settings.cpp +++ b/common/dialogs/panel_color_settings.cpp @@ -180,7 +180,7 @@ void PANEL_COLOR_SETTINGS::createThemeList( const wxString& aCurrent ) { int pos = m_cbTheme->Append( settings->GetName(), static_cast( settings ) ); - if( settings->GetFilename() == aCurrent ) + if( settings->GetName() == aCurrent ) m_cbTheme->SetSelection( pos ); m_cbTheme->GetTextExtent( settings->GetName(), &width, &height );