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
This commit is contained in:
Chris Pavlina 2017-03-07 14:21:26 -05:00
parent ef74f245cb
commit 3854637ec5
1 changed files with 0 additions and 7 deletions

View File

@ -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();
}