Commit 27e0703e authored by AlmAck's avatar AlmAck

check also if toBeReplaced() is empty

parent 47e5a5cb
......@@ -202,7 +202,7 @@ void QueueOperation::validationFinished(bool valid)
return;
}
if (m_action != AkabeiClient::Update && m_transaction->toBeInstalled().isEmpty() && m_transaction->toBeReinstalled().isEmpty() && m_transaction->toBeRemoved().isEmpty() && m_transaction->toBeUpgraded().isEmpty()) {
if (m_action != AkabeiClient::Update && m_transaction->toBeInstalled().isEmpty() && m_transaction->toBeReinstalled().isEmpty() && m_transaction->toBeRemoved().isEmpty() && m_transaction->toBeUpgraded().isEmpty() && m_transaction->toBeReplaced().isEmpty()) {
err << Akabei::errorPrefix << QObject::tr("The targets specified for the operation are not valid. Quitting...") << endl;
emit finished();
return;
......
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