From 3854637ec5097891061ea6d23052c4e2a22bd85b Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Tue, 7 Mar 2017 14:21:26 -0500 Subject: [PATCH] Footprint preview: do not Freeze/Thaw This causes issues under Ubuntu Unity (possibly due to calling Show() while frozen). Fixes: lp:1670705 * https://bugs.launchpad.net/kicad/+bug/1670705 --- pcbnew/footprint_preview_panel.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pcbnew/footprint_preview_panel.cpp b/pcbnew/footprint_preview_panel.cpp index e6ee2850aa..e2da75267a 100644 --- a/pcbnew/footprint_preview_panel.cpp +++ b/pcbnew/footprint_preview_panel.cpp @@ -204,7 +204,6 @@ FOOTPRINT_PREVIEW_PANEL::CacheFootprint ( const LIB_ID& aFPID ) void FOOTPRINT_PREVIEW_PANEL::renderFootprint( MODULE *module ) { - Freeze(); GetView()->Clear(); module->SetParent ( &*m_dummyBoard ); module->RunOnChildren( boost::bind( &KIGFX::VIEW::Add, GetView(), _1, -1 ) ); @@ -228,8 +227,6 @@ void FOOTPRINT_PREVIEW_PANEL::renderFootprint( MODULE *module ) Refresh(); } - - Thaw(); } @@ -282,7 +279,6 @@ void FOOTPRINT_PREVIEW_PANEL::OnLoaderThreadUpdate( wxCommandEvent& event ) void FOOTPRINT_PREVIEW_PANEL::SetStatusText( wxString const & aText ) { - Freeze(); if( m_label ) { m_label->SetLabel( aText ); @@ -295,13 +291,11 @@ void FOOTPRINT_PREVIEW_PANEL::SetStatusText( wxString const & aText ) } GetParent()->Layout(); - Thaw(); } void FOOTPRINT_PREVIEW_PANEL::ClearStatus() { - Freeze(); if( m_label ) { m_label->SetLabel( wxEmptyString ); @@ -314,7 +308,6 @@ void FOOTPRINT_PREVIEW_PANEL::ClearStatus() } GetParent()->Layout(); - Thaw(); }