Fixed the logic problem of testing whether the job was valid
This commit is contained in:
parent
944c7e60dc
commit
cdeb168c53
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user