From 2f0b8eb5e95be5a8bcac30cb1d96dc4cab341771 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 20 Aug 2020 00:43:35 +0100 Subject: [PATCH] Don't allow view preset switcher on non-front window. --- pcbnew/pcb_base_edit_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/pcb_base_edit_frame.cpp b/pcbnew/pcb_base_edit_frame.cpp index c0161dbb01..49b5fd8014 100644 --- a/pcbnew/pcb_base_edit_frame.cpp +++ b/pcbnew/pcb_base_edit_frame.cpp @@ -85,7 +85,7 @@ bool PCB_BASE_EDIT_FRAME::TryBefore( wxEvent& aEvent ) if( !s_switcherShown && wxGetKeyState( WXK_RAW_CONTROL ) && wxGetKeyState( WXK_TAB ) ) { - if( m_appearancePanel ) + if( m_appearancePanel && this->IsActive() ) { const wxArrayString& mru = m_appearancePanel->GetLayerPresetsMRU(); EDA_VIEW_SWITCHER switcher( this, mru );