From 8ee7fc01e5d7f2ed00661d7b06ec953941b295df Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Sun, 9 Apr 2017 11:40:56 -0400 Subject: [PATCH] Fix crash when cutting an item using the context menu page->cut() is deleting the object, which means that "this" is no longer valid, and then we're trying to call `processPopUpAction()` on it. --- limereport/lrbasedesignintf.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/limereport/lrbasedesignintf.cpp b/limereport/lrbasedesignintf.cpp index a80fd33..bdba630 100644 --- a/limereport/lrbasedesignintf.cpp +++ b/limereport/lrbasedesignintf.cpp @@ -1180,7 +1180,10 @@ void BaseDesignIntf::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) QAction* a = menu.exec(event->screenPos()); if (a){ if (a == cutAction) + { page->cut(); + return; + } if (a == copyAction) page->copy(); if (a == pasteAction)