Browse Source

Shutdown safety (KICAD-N5Y).

pull/18/head
Jeff Young 6 months ago
parent
commit
59caea4344
  1. 3
      eeschema/widgets/search_handlers.h
  2. 2
      include/eda_base_frame.h
  3. 3
      pcbnew/widgets/search_handlers.h

3
eeschema/widgets/search_handlers.h

@ -48,6 +48,9 @@ public:
wxString GetResultCell( int aRow, int aCol ) override
{
if( m_frame->IsClosing() )
return wxEmptyString;
if( aRow >= static_cast<int>( m_hitlist.size() ) )
return wxEmptyString;

2
include/eda_base_frame.h

@ -621,6 +621,8 @@ public:
*/
virtual void OnModify();
bool IsClosing() const { return m_isClosing; }
bool NonUserClose( bool aForce )
{
m_isNonUserClose = true;

3
pcbnew/widgets/search_handlers.h

@ -39,6 +39,9 @@ public:
wxString GetResultCell( int aRow, int aCol ) override
{
if( m_frame->IsClosing() )
return wxEmptyString;
if( aRow >= static_cast<int>(m_hitlist.size() ) )
return wxEmptyString;

Loading…
Cancel
Save