summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold Dumas <[email protected]>2014-11-03 14:54:57 +0100
committerArnold Dumas <[email protected]>2014-11-03 14:54:57 +0100
commit1044b430112f8e6bf9e88da757b872e69b8c571f (patch)
tree701d208da14950f5c92f3494bd28df35de1d0c7a
parent0f388cd133beed0439dbb2fad51bcdcd91bce3c4 (diff)
Port away from KIO::NetAccess::mkdir.
-rw-r--r--umbrello/CMakeLists.txt1
-rw-r--r--umbrello/umlviewimageexportermodel.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/umbrello/CMakeLists.txt b/umbrello/CMakeLists.txt
index e82ee99..40f5e75 100644
--- a/umbrello/CMakeLists.txt
+++ b/umbrello/CMakeLists.txt
@@ -491,6 +491,7 @@ target_link_libraries(umbrello
KF5::I18n
KF5::IconThemes
KF5::GuiAddons
+ KF5::KIOCore
KF5::TextEditor
KF5::WidgetsAddons
KF5::WindowSystem
diff --git a/umbrello/umlviewimageexportermodel.cpp b/umbrello/umlviewimageexportermodel.cpp
index c1d9436..4e6a9ff 100644
--- a/umbrello/umlviewimageexportermodel.cpp
+++ b/umbrello/umlviewimageexportermodel.cpp
@@ -23,6 +23,7 @@
// kde include files
#include <klocale.h>
#include <kio/netaccess.h>
+#include <KIO/MkdirJob>
// include files for Qt
#include <QApplication>
@@ -321,7 +322,8 @@ bool UMLViewImageExporterModel::prepareDirectory(const QUrl &url) const
if (!KIO::NetAccess::exists(directory, KIO::NetAccess::SourceSide, UMLApp::app())) {
- if (!KIO::NetAccess::mkdir(directory, UMLApp::app())) {
+ KIO::MkdirJob* job = KIO::mkdir(directory);
+ if (!job->exec()) {
return false;
}
}