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