diff options
author | deva <deva> | 2009-07-03 14:14:46 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-03 14:14:46 +0000 |
commit | 871f7bd8acf4092ce2046038b503aa0cfc978fa8 (patch) | |
tree | c074f0d3efbf17d27cdb711193922294fa8f9354 /client/mainwindow.cc | |
parent | 570b69de62cf780bf86d81756fddbcaa61af05f1 (diff) |
Removed multiple connections to update. (doubled after each commit...)
Diffstat (limited to 'client/mainwindow.cc')
-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++; } } |