Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kdiroperator.cpp
Show First 20 Lines • Show All 729 Lines • ▼ Show 20 Line(s) | 717 | { | |||
---|---|---|---|---|---|
730 | 730 | | |||
731 | for (; it != dirs.end(); ++it) { | 731 | for (; it != dirs.end(); ++it) { | ||
732 | folderurl.setPath(concatPaths(folderurl.path(), *it)); | 732 | folderurl.setPath(concatPaths(folderurl.path(), *it)); | ||
733 | if (folderurl.isLocalFile()) { | 733 | if (folderurl.isLocalFile()) { | ||
734 | exists = QFile::exists(folderurl.toLocalFile()); | 734 | exists = QFile::exists(folderurl.toLocalFile()); | ||
735 | } else { | 735 | } else { | ||
736 | KIO::StatJob *job = KIO::stat(folderurl); | 736 | KIO::StatJob *job = KIO::stat(folderurl); | ||
737 | KJobWidgets::setWindow(job, this); | 737 | KJobWidgets::setWindow(job, this); | ||
738 | job->setDetails(0); //We only want to know if it exists, 0 == that. | 738 | 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"... | |||||
739 | job->setSide(KIO::StatJob::DestinationSide); | 739 | job->setSide(KIO::StatJob::DestinationSide); | ||
740 | exists = job->exec(); | 740 | exists = job->exec(); | ||
741 | } | 741 | } | ||
742 | 742 | | |||
743 | if (!exists) { | 743 | if (!exists) { | ||
744 | KIO::Job *job = KIO::mkdir(folderurl); | 744 | KIO::Job *job = KIO::mkdir(folderurl); | ||
745 | KJobWidgets::setWindow(job, this); | 745 | KJobWidgets::setWindow(job, this); | ||
746 | writeOk = job->exec(); | 746 | writeOk = job->exec(); | ||
▲ Show 20 Lines • Show All 2093 Lines • Show Last 20 Lines |
This would actually be a use case for an even more basic level, "NoDetails"...