summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2009-07-03 14:14:46 +0000
committerdeva <deva>2009-07-03 14:14:46 +0000
commit871f7bd8acf4092ce2046038b503aa0cfc978fa8 (patch)
treec074f0d3efbf17d27cdb711193922294fa8f9354
parent570b69de62cf780bf86d81756fddbcaa61af05f1 (diff)
Removed multiple connections to update. (doubled after each commit...)
-rw-r--r--client/mainwindow.cc6
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 &macro = 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++;
}
}