From 125a92514cedbeeaad9c418ae87b11bd8f0b56f9 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Fri, 5 Jun 2020 10:04:52 +0100 Subject: [PATCH] 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. --- src/Charts/ChartBar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Charts/ChartBar.cpp b/src/Charts/ChartBar.cpp index b996c95ff..3f3de1558 100644 --- a/src/Charts/ChartBar.cpp +++ b/src/Charts/ChartBar.cpp @@ -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 {