Fixed the logic problem of testing whether the job was valid

This commit is contained in:
Ivan Čukić 2016-04-05 09:33:52 +02:00
parent 944c7e60dc
commit cdeb168c53

View File

@ -92,7 +92,7 @@ KJob *PackageStructureWrapper::uninstall(KPackage::Package *package, const QStri
void PackageStructurePrivate::installPathChanged(const QString &path)
{
KJob *job = qobject_cast<KJob *>(q->sender());
if (!job && job->error()) {
if (!job || job->error()) {
return;
}