diff --git a/common/dialogs/panel_color_settings.cpp b/common/dialogs/panel_color_settings.cpp index 108cbe70da..3702774835 100644 --- a/common/dialogs/panel_color_settings.cpp +++ b/common/dialogs/panel_color_settings.cpp @@ -63,7 +63,7 @@ void PANEL_COLOR_SETTINGS::OnBtnOpenThemeFolderClicked( wxCommandEvent& event ) void PANEL_COLOR_SETTINGS::ResetPanel() { - if( !m_currentSettings ) + if( !m_currentSettings || m_currentSettings->IsReadOnly() ) return; for( const std::pair& pair : m_swatches )