# # # patch "src/model/AutomateCommand.cpp" # from [45cc241099f0467ccdaf6269dd86e044e0c6c03c] # to [c31727618370f788e85742edd60ae188c7a49a63] # # patch "src/model/AutomateCommand.h" # from [93261beb5e677059132b532464042b8a982e57f6] # to [326af203c76ca76af5a9e35bdcfbdf314e002027] # ============================================================ --- src/model/AutomateCommand.cpp 45cc241099f0467ccdaf6269dd86e044e0c6c03c +++ src/model/AutomateCommand.cpp c31727618370f788e85742edd60ae188c7a49a63 @@ -19,6 +19,7 @@ ***************************************************************************/ #include "AutomateCommand.h" +#include "Guitone.h" AutomateCommand::AutomateCommand(const QString & db, AutomateCommandHelper * helper) : dbPath(db) @@ -38,7 +39,7 @@ void AutomateCommand::enqueueTask(const void AutomateCommand::enqueueTask(const MonotoneTask & task) { QMutexLocker locker(&lock); - + MonotoneThread * thread = APP->manager()->getThread(dbPath); int threadNumber = thread->getThreadNumber(); // we want to avoid multiple thread connections @@ -48,12 +49,12 @@ void AutomateCommand::enqueueTask(const thread, SIGNAL(taskAborted(const MonotoneTask &)), cmdHelper, SLOT(taskAborted(const MonotoneTask &)) ); - + QObject::connect( thread, SIGNAL(taskFinished(const MonotoneTask &)), cmdHelper, SLOT(taskFinished(const MonotoneTask &)) ); - + connectedThreads.append(threadNumber); } queuedCommands[threadNumber].append( ============================================================ --- src/model/AutomateCommand.h 93261beb5e677059132b532464042b8a982e57f6 +++ src/model/AutomateCommand.h 326af203c76ca76af5a9e35bdcfbdf314e002027 @@ -22,7 +22,6 @@ #define AUTOMATE_COMMAND_H #include "MonotoneThread.h" -#include "Guitone.h" #include #include