Merge pull request #72 from asmaloney/fix-crash

Fix crash when cutting an item using the context menu
This commit is contained in:
fralx 2017-04-10 11:18:53 +03:00 committed by GitHub
commit fae194b36f

View File

@ -1180,7 +1180,10 @@ void BaseDesignIntf::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
QAction* a = menu.exec(event->screenPos()); QAction* a = menu.exec(event->screenPos());
if (a){ if (a){
if (a == cutAction) if (a == cutAction)
{
page->cut(); page->cut();
return;
}
if (a == copyAction) if (a == copyAction)
page->copy(); page->copy();
if (a == pasteAction) if (a == pasteAction)