summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PatchageModule.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/PatchageModule.h b/src/PatchageModule.h
index 3ce78c6..3ff030e 100644
--- a/src/PatchageModule.h
+++ b/src/PatchageModule.h
@@ -52,7 +52,7 @@ public:
items.push_back(Gtk::Menu_Helpers::MenuElem("Disconnect All",
sigc::mem_fun(this, &PatchageModule::menu_disconnect_all)));
- signal_clicked.connect(sigc::mem_fun(this, &PatchageModule::on_click));
+ //signal_clicked.connect(sigc::mem_fun(this, &PatchageModule::on_click));
}
virtual ~PatchageModule() { }
@@ -109,7 +109,13 @@ public:
}
virtual void show_dialog() {}
- virtual void on_click(GdkEventButton* ev) { if (ev->button == 3) _menu.popup(ev->button, ev->time); }
+
+ virtual void on_click(GdkEventButton* ev) {
+ if (ev->button == 3)
+ _menu.popup(ev->button, ev->time);
+ LibFlowCanvas::Item::on_click(ev);
+ }
+
virtual void menu_disconnect_all() {
for (PortVector::iterator p = _ports.begin(); p != _ports.end(); ++p)
(*p)->disconnect_all();