summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-26 20:44:47 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-26 20:44:47 -0400
commit6883378f184f040f39f8138490899e7cb33643b9 (patch)
tree58d1f1a7e9e1d6c33e16adb6dee9f95c1537f41f
parenta8be24e31b3bc08b24d04e2ae0856a70c2f6d97d (diff)
Delete the menu
-rw-r--r--sigmodr/SigmodrUI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sigmodr/SigmodrUI.cpp b/sigmodr/SigmodrUI.cpp
index 7d048b79..a8af3ece 100644
--- a/sigmodr/SigmodrUI.cpp
+++ b/sigmodr/SigmodrUI.cpp
@@ -502,6 +502,7 @@ void SigmodrUI::on_treeSigmod_customContextMenuRequested(const QPoint& position)
menu->addAction("&Copy", this, SLOT(copyObject()));
menu->addAction(paste);
menu->popup(treeSigmod->mapToGlobal(position));
+ connect(menu, SIGNAL(aboutToHide()), SLOT(deleteLater()));
}
}