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 );