Changeset View
Changeset View
Standalone View
Standalone View
krusader/FileSystem/defaultfilesystem.cpp
Show First 20 Lines • Show All 317 Lines • ▼ Show 20 Line(s) | 311 | { | |||
---|---|---|---|---|---|
318 | // the current directory was deleted. Try a refresh, which will fail. An error message will | 318 | // the current directory was deleted. Try a refresh, which will fail. An error message will | ||
319 | // be emitted and the empty (non-existing) directory remains. | 319 | // be emitted and the empty (non-existing) directory remains. | ||
320 | refresh(); | 320 | refresh(); | ||
321 | } | 321 | } | ||
322 | 322 | | |||
323 | bool DefaultFileSystem::refreshLocal(const QUrl &directory, bool onlyScan) { | 323 | bool DefaultFileSystem::refreshLocal(const QUrl &directory, bool onlyScan) { | ||
324 | const QString path = KrServices::urlToLocalPath(directory); | 324 | const QString path = KrServices::urlToLocalPath(directory); | ||
325 | 325 | | |||
326 | #ifdef Q_WS_WIN | 326 | #ifdef Q_OS_WIN | ||
327 | if (!path.contains("/")) { // change C: to C:/ | 327 | if (!path.contains("/")) { // change C: to C:/ | ||
328 | path = path + QString("/"); | 328 | path = path + QString("/"); | ||
329 | } | 329 | } | ||
330 | #endif | 330 | #endif | ||
331 | 331 | | |||
332 | // check if the new directory exists | 332 | // check if the new directory exists | ||
333 | if (!QDir(path).exists()) { | 333 | if (!QDir(path).exists()) { | ||
334 | emit error(i18n("The folder %1 does not exist.", path)); | 334 | emit error(i18n("The folder %1 does not exist.", path)); | ||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |