Fix ChartBar Remove Chart SEGV

.. context menu action and processing in event loop deletes the widgets
   whilst events are being processed for it. So in event processing we
   now return immediately after triggering context menus.
This commit is contained in:
Mark Liversedge
2020-06-05 10:04:52 +01:00
parent 0881250542
commit 125a92514c

View File

@@ -534,6 +534,7 @@ ChartBarItem::event(QEvent *e)
// menu activated
state = Idle;
emit contextMenu();
return true; // no more processing of this event please - lots of stuff happens off that menu !
} else {