Commit 7205697a authored by Lukas Appelhans's avatar Lukas Appelhans Committed by Lisa

No core app still

parent 77e7fdb3
......@@ -68,7 +68,7 @@ void RemoveOperation::remove(QList<Akabei::Package*> packages)
}
QueueOperation *operation = new QueueOperation(APM::Remove, m_options, this);
operation->start(AkabeiClient::Remove, packages);
connect(operation, SIGNAL(finished()), QCoreApplication::instance(), SLOT(nextOperation()));
connect(operation, SIGNAL(finished()), SLOT(nextOperation()));
}
void RemoveOperation::removeRecursive(QList<Akabei::Package*> packages)
......@@ -87,7 +87,7 @@ void RemoveOperation::removeRecursive(QList<Akabei::Package*> packages)
}
QueueOperation *operation = new QueueOperation(APM::Remove, m_options, this);
operation->start(AkabeiClient::Remove, pkgs);
connect(operation, SIGNAL(finished()), QCoreApplication::instance(), SLOT(nextOperation()));
connect(operation, SIGNAL(finished()), SLOT(nextOperation()));
}
void RemoveOperation::removeUnneeded(QList< Akabei::Package* > packages)
......@@ -114,7 +114,7 @@ void RemoveOperation::removeUnneeded(QList< Akabei::Package* > packages)
}
QueueOperation *operation = new QueueOperation(APM::Unneeded, m_options, this);
operation->start(AkabeiClient::Remove, unneeded);
connect(operation, SIGNAL(finished()), QCoreApplication::instance(), SLOT(nextOperation()));
connect(operation, SIGNAL(finished()), SLOT(nextOperation()));
}
void RemoveOperation::nextOperation()
......
......@@ -45,5 +45,5 @@ void UpgradeOperation::start(QList<APM::OperationName> operations, QHash<APM::Op
QueueOperation *op = new QueueOperation(operations.first(), options, this);
op->start(AkabeiClient::Install, pkgs);
connect(op, SIGNAL(finished()), QCoreApplication::instance(), SLOT(quit()));
connect(op, SIGNAL(finished()), SLOT(quit()));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment