From 871f7bd8acf4092ce2046038b503aa0cfc978fa8 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 3 Jul 2009 14:14:46 +0000 Subject: Removed multiple connections to update. (doubled after each commit...) --- client/mainwindow.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client') 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++; } } -- cgit v1.2.3