summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
authordeva <deva>2009-03-20 13:52:25 +0000
committerdeva <deva>2009-03-20 13:52:25 +0000
commit539e037777955d7bc7face4ac1e62a18756d104d (patch)
tree9c9d17a4d3a011d12a16471e407f60ca52714799 /client/mainwindow.cc
parent8ca8f7da56f0524fde5cbbecb557c29a1b777ef5 (diff)
Fixed crash on doubleclik on the frame.
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r--client/mainwindow.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index 6ba72e0..f0601ca 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -156,6 +156,8 @@ void MainWindow::update()
macros[macroname]->isstatic = isstatic;
MacroDrawer *g = new MacroDrawer(macros[macroname], xml_elem.attribute("caption", macroname));
+ connect(g, SIGNAL(toggle()), macros[macroname], SLOT(toggleMacro()));
+
((QBoxLayout*)w->layout())->addWidget(g);
QHBoxLayout *l = new QHBoxLayout();