* Oops, got move and copy error messages round the wrong way.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=824862
This commit is contained in:
parent
6c96501e15
commit
64016f5660
@ -281,7 +281,7 @@ bool Package::installPackage(const QString& package,
|
|||||||
// it's in a temp dir, so just move it over.
|
// it's in a temp dir, so just move it over.
|
||||||
KIO::CopyJob *job = KIO::move(KUrl(path), KUrl(targetName), KIO::HideProgressInfo);
|
KIO::CopyJob *job = KIO::move(KUrl(path), KUrl(targetName), KIO::HideProgressInfo);
|
||||||
if (!job->exec()) {
|
if (!job->exec()) {
|
||||||
kWarning() << "Could not copy package to destination:" << targetName << " : " << job->errorString();
|
kWarning() << "Could not move package to destination:" << targetName << " : " << job->errorString();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -289,7 +289,7 @@ bool Package::installPackage(const QString& package,
|
|||||||
// than move them
|
// than move them
|
||||||
KIO::CopyJob *job = KIO::copy(KUrl(path), KUrl(targetName), KIO::HideProgressInfo);
|
KIO::CopyJob *job = KIO::copy(KUrl(path), KUrl(targetName), KIO::HideProgressInfo);
|
||||||
if (!job->exec()) {
|
if (!job->exec()) {
|
||||||
kWarning() << "Could not move package to destination:" << targetName << " : " << job->errorString();
|
kWarning() << "Could not copy package to destination:" << targetName << " : " << job->errorString();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user