summaryrefslogtreecommitdiffstats
path: root/src/gui/Port.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r--src/gui/Port.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index e123a571..20f9cf90 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -141,6 +141,11 @@ Port::show_menu(GdkEventButton* ev)
{
PortMenu* menu = NULL;
WidgetFactory::get_widget_derived("object_menu", menu);
+ if (!menu) {
+ _app.log().error("Failed to load port menu widget\n");
+ return false;
+ }
+
menu->init(_app, model(), _flipped);
menu->popup(ev->button, ev->time);
return true;