Changeset View
Changeset View
Standalone View
Standalone View
kcms/kfontinst/kio/KioFonts.cpp
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Line(s) | 216 | { | |||
---|---|---|---|---|---|
230 | { | 230 | { | ||
231 | if(!itsTempDir) | 231 | if(!itsTempDir) | ||
232 | { | 232 | { | ||
233 | itsTempDir=new QTemporaryDir(QDir::tempPath() + | 233 | itsTempDir=new QTemporaryDir(QDir::tempPath() + | ||
234 | QString::fromLatin1("/kio_fonts_")+QString::number(getpid())); | 234 | QString::fromLatin1("/kio_fonts_")+QString::number(getpid())); | ||
235 | itsTempDir->setAutoRemove(true); | 235 | itsTempDir->setAutoRemove(true); | ||
236 | } | 236 | } | ||
237 | 237 | | |||
238 | QString tempFile(itsTempDir->path()+QLatin1Char('/')+url.fileName()); | 238 | QString tempFile(itsTempDir->filePath(url.fileName())); | ||
239 | QFile dest(tempFile); | 239 | QFile dest(tempFile); | ||
240 | 240 | | |||
241 | if (dest.open(QIODevice::WriteOnly)) | 241 | if (dest.open(QIODevice::WriteOnly)) | ||
242 | { | 242 | { | ||
243 | int result; | 243 | int result; | ||
244 | // Loop until we got 0 (end of data) | 244 | // Loop until we got 0 (end of data) | ||
245 | do | 245 | do | ||
246 | { | 246 | { | ||
▲ Show 20 Lines • Show All 576 Lines • Show Last 20 Lines |