Changeset View
Changeset View
Standalone View
Standalone View
kcms/kfontinst/kcmfontinst/JobRunner.cpp
Show First 20 Lines • Show All 707 Lines • ▼ Show 20 Line(s) | 700 | { | |||
---|---|---|---|---|---|
708 | { | 708 | { | ||
709 | // Need to do actual download... | 709 | // Need to do actual download... | ||
710 | if(!itsTempDir) | 710 | if(!itsTempDir) | ||
711 | { | 711 | { | ||
712 | itsTempDir=new QTemporaryDir(QDir::tempPath() + "/fontinst"); | 712 | itsTempDir=new QTemporaryDir(QDir::tempPath() + "/fontinst"); | ||
713 | itsTempDir->setAutoRemove(true); | 713 | itsTempDir->setAutoRemove(true); | ||
714 | } | 714 | } | ||
715 | 715 | | |||
716 | QString tempName(itsTempDir->path()+QLatin1Char('/')+Misc::getFile(url.path())); | 716 | QString tempName(itsTempDir->filePath(Misc::getFile(url.path()))); | ||
717 | auto job = KIO::file_copy(url, QUrl::fromLocalFile(tempName), -1, KIO::Overwrite); | 717 | auto job = KIO::file_copy(url, QUrl::fromLocalFile(tempName), -1, KIO::Overwrite); | ||
718 | if (job->exec()) | 718 | if (job->exec()) | ||
719 | return tempName; | 719 | return tempName; | ||
720 | else | 720 | else | ||
721 | return QString(); | 721 | return QString(); | ||
722 | } | 722 | } | ||
723 | } | 723 | } | ||
724 | } | 724 | } | ||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |