mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-25 21:14:39 +03:00
Merge pull request #72 from asmaloney/fix-crash
Fix crash when cutting an item using the context menu
This commit is contained in:
commit
fae194b36f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user