summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r--client/mainwindow.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index c59a877..39921b0 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -131,7 +131,6 @@ void MainWindow::update()
QString macroname = macroelement.attribute("name");
bool found = false;
-
Macros::iterator i = macros.begin();
while(i != macros.end()) {
if(i->name == macroname) found |= true;
@@ -144,6 +143,18 @@ void MainWindow::update()
Macro macro(macronode);
macros[num + macro.name] = macro;
}
+
+ if(found) {
+
+ Macros::iterator i = macros.begin();
+ while(i != macros.end()) {
+ if(i->name == macroname) {
+ i->update(macronode);
+ }
+ i++;
+ }
+
+ }
}
{