X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=macros%2Fpirmacro.cpp;h=10753c2f744255cbacac24db13d07ed6863e0bc2;hb=f3809ec697222bd9ad47c725bb72dd7272fd594b;hp=b1a947505012319a8de2862c6e8aa109d0f734cb;hpb=ca07675aa383be558295fc82411c677bae207257;p=pierogi diff --git a/macros/pirmacro.cpp b/macros/pirmacro.cpp index b1a9475..10753c2 100644 --- a/macros/pirmacro.cpp +++ b/macros/pirmacro.cpp @@ -200,18 +200,19 @@ bool PIRMacro::executeMacro() // Don't start a new macro if one is already running: if (macroRunning) return false; + // Start running the list of commands: + macroRunning = true; + currentCommand = commands.begin(); // If this macro is empty, just return: if (currentCommand == commands.end()) { emit macroCompleted(); + macroRunning = false; return true; } - // Start running the list of commands: - macroRunning = true; - // Take note of the current keyset id: preMacroKeysetID = mainWindow->getCurrentKeyset();