Add some safety around event-driven menubar recreation
Maybe addresses sentry KICAD-PC
This commit is contained in:
parent
3ef16221fe
commit
bfbf000f60
|
@ -483,9 +483,10 @@ void EDA_BASE_FRAME::ReCreateMenuBar()
|
|||
* ensure that they do not occur within the same event handling call stack.
|
||||
*/
|
||||
|
||||
CallAfter( [=]()
|
||||
CallAfter( [&]()
|
||||
{
|
||||
doReCreateMenuBar();
|
||||
if( !m_isClosing )
|
||||
doReCreateMenuBar();
|
||||
} );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue