Improve Eeschema find dialog behavior.
* Remove ignore mouse events before creating find dialog for true mode-less behavior as was originally intended.
This commit is contained in:
parent
6582cea862
commit
3af054c702
|
@ -652,8 +652,6 @@ void SCH_EDIT_FRAME::OnFindItems( wxCommandEvent& aEvent )
|
||||||
wxCHECK_RET( m_findReplaceData != NULL,
|
wxCHECK_RET( m_findReplaceData != NULL,
|
||||||
wxT( "Forgot to create find/replace data. Bad Programmer!" ) );
|
wxT( "Forgot to create find/replace data. Bad Programmer!" ) );
|
||||||
|
|
||||||
this->GetCanvas()->SetIgnoreMouseEvents( true );
|
|
||||||
|
|
||||||
if( m_dlgFindReplace )
|
if( m_dlgFindReplace )
|
||||||
{
|
{
|
||||||
delete m_dlgFindReplace;
|
delete m_dlgFindReplace;
|
||||||
|
@ -702,8 +700,6 @@ void SCH_EDIT_FRAME::OnFindDialogClose( wxFindDialogEvent& event )
|
||||||
m_dlgFindReplace->Destroy();
|
m_dlgFindReplace->Destroy();
|
||||||
m_dlgFindReplace = NULL;
|
m_dlgFindReplace = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_canvas->SetIgnoreMouseEvents( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue