Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kdiroperator.cpp
Show First 20 Lines • Show All 739 Lines • ▼ Show 20 Line(s) | 727 | { | |||
---|---|---|---|---|---|
740 | 740 | | |||
741 | for (; it != dirs.end(); ++it) { | 741 | for (; it != dirs.end(); ++it) { | ||
742 | folderurl.setPath(concatPaths(folderurl.path(), *it)); | 742 | folderurl.setPath(concatPaths(folderurl.path(), *it)); | ||
743 | if (folderurl.isLocalFile()) { | 743 | if (folderurl.isLocalFile()) { | ||
744 | exists = QFile::exists(folderurl.toLocalFile()); | 744 | exists = QFile::exists(folderurl.toLocalFile()); | ||
745 | } else { | 745 | } else { | ||
746 | KIO::StatJob *job = KIO::stat(folderurl); | 746 | KIO::StatJob *job = KIO::stat(folderurl); | ||
747 | KJobWidgets::setWindow(job, this); | 747 | KJobWidgets::setWindow(job, this); | ||
748 | job->setDetails(0); //We only want to know if it exists, 0 == that. | 748 | job->setDetails(KIO::StatJob::Basic); //We only want to know if it exists | ||
dfaure: This would actually be a use case for an even more basic level, "NoDetails"... | |||||
749 | job->setSide(KIO::StatJob::DestinationSide); | 749 | job->setSide(KIO::StatJob::DestinationSide); | ||
750 | exists = job->exec(); | 750 | exists = job->exec(); | ||
751 | } | 751 | } | ||
752 | 752 | | |||
753 | if (!exists) { | 753 | if (!exists) { | ||
754 | KIO::Job *job = KIO::mkdir(folderurl); | 754 | KIO::Job *job = KIO::mkdir(folderurl); | ||
755 | KJobWidgets::setWindow(job, this); | 755 | KJobWidgets::setWindow(job, this); | ||
756 | writeOk = job->exec(); | 756 | writeOk = job->exec(); | ||
▲ Show 20 Lines • Show All 2074 Lines • Show Last 20 Lines |
This would actually be a use case for an even more basic level, "NoDetails"...