diff options
-rw-r--r-- | client/mainwindow.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 39921b0..6a3e5d9 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -162,7 +162,11 @@ void MainWindow::update() while(i != macros.end()) { Macro ¯o = i.value(); macro.init((QBoxLayout*)w->layout(), macros, initialising, netcom, course); - if(macro.window != NULL) connect(macro.window, SIGNAL(updateOnCommit()), this, SLOT(update())); + if(macro.window != NULL) { + disconnect(macro.window, SIGNAL(updateOnCommit()), this, SLOT(update())); + + connect(macro.window, SIGNAL(updateOnCommit()), this, SLOT(update())); + } i++; } } |