Eeschema: fix missing call to UpdateMessagePanel() due to commit e09147db
.
EE_INSPECTION_TOOL::UpdateMessagePanel was called by EVENTS::SelectedEvent But This event after commit calls E_INSPECTION_TOOL::CrossProbe(), and no longer UpdateMessagePanel. So CrossProbe() now calls UpdateMessagePanel. Fixes #11447 https://gitlab.com/kicad/code/kicad/issues/11447
This commit is contained in:
parent
728777da7c
commit
3bc34590c7
|
@ -167,6 +167,9 @@ int EE_INSPECTION_TOOL::CrossProbe( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
}
|
||||
|
||||
// Show the item info on a left click on this item
|
||||
UpdateMessagePanel( aEvent );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -331,6 +334,7 @@ void EE_INSPECTION_TOOL::setTransitions()
|
|||
Go( &EE_INSPECTION_TOOL::RunERC, EE_ACTIONS::runERC.MakeEvent() );
|
||||
Go( &EE_INSPECTION_TOOL::PrevMarker, EE_ACTIONS::prevMarker.MakeEvent() );
|
||||
Go( &EE_INSPECTION_TOOL::NextMarker, EE_ACTIONS::nextMarker.MakeEvent() );
|
||||
// See note 1:
|
||||
Go( &EE_INSPECTION_TOOL::CrossProbe, EVENTS::SelectedEvent );
|
||||
Go( &EE_INSPECTION_TOOL::ExcludeMarker, EE_ACTIONS::excludeMarker.MakeEvent() );
|
||||
|
||||
|
@ -339,7 +343,9 @@ void EE_INSPECTION_TOOL::setTransitions()
|
|||
|
||||
Go( &EE_INSPECTION_TOOL::ShowDatasheet, EE_ACTIONS::showDatasheet.MakeEvent() );
|
||||
|
||||
Go( &EE_INSPECTION_TOOL::UpdateMessagePanel, EVENTS::SelectedEvent );
|
||||
// Note 1: tUpdateMessagePanel is called by CrossProbe. So uncomment this line if
|
||||
// call to CrossProbe is modifiied
|
||||
// Go( &EE_INSPECTION_TOOL::UpdateMessagePanel, EVENTS::SelectedEvent );
|
||||
Go( &EE_INSPECTION_TOOL::UpdateMessagePanel, EVENTS::UnselectedEvent );
|
||||
Go( &EE_INSPECTION_TOOL::UpdateMessagePanel, EVENTS::ClearedEvent );
|
||||
Go( &EE_INSPECTION_TOOL::UpdateMessagePanel, EVENTS::SelectedItemsModified );
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2019 CERN
|
||||
* Copyright (C) 2019-2021 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2019-2022 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -51,7 +51,10 @@ public:
|
|||
|
||||
int PrevMarker( const TOOL_EVENT& aEvent );
|
||||
int NextMarker( const TOOL_EVENT& aEvent );
|
||||
|
||||
/// Called when clicking on a item:
|
||||
int CrossProbe( const TOOL_EVENT& aEvent );
|
||||
|
||||
int ExcludeMarker( const TOOL_EVENT& aEvent );
|
||||
|
||||
int CheckSymbol( const TOOL_EVENT& aEvent );
|
||||
|
@ -60,6 +63,7 @@ public:
|
|||
|
||||
int ShowDatasheet( const TOOL_EVENT& aEvent );
|
||||
|
||||
/// Display the selected item info (when clicking on a item)
|
||||
int UpdateMessagePanel( const TOOL_EVENT& aEvent );
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue