┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.cpp
diff options
context:
space:
mode:
authorEmmanuel Pescosta <[email protected]>2015-02-26 17:40:06 +0100
committerEmmanuel Pescosta <[email protected]>2015-02-26 18:10:42 +0100
commit832e157ecd1a1640b82425358b20fff416a2f8b7 (patch)
treef7bd0c344151fe3ef6354ae410f9b45b3b7e0a10 /src/dolphinpart.cpp
parent41424d010934e0a47958d0192c7c4de69ea3e955 (diff)
Port away from KDELibs4Support (we only use KDELibs4Support when baloo isn't present, because KFileMetaDataWidget is in KDELibs4Support)
Reviewed-By: Vishesh Handa
Diffstat (limited to 'src/dolphinpart.cpp')
-rw-r--r--src/dolphinpart.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp
index 35f328be5..ea0ffd92c 100644
--- a/src/dolphinpart.cpp
+++ b/src/dolphinpart.cpp
@@ -30,7 +30,6 @@
#include <KMessageBox>
#include <KPluginFactory>
#include <KRun>
-#include <KIO/NetAccess>
#include <KToolInvocation>
#include <kauthorized.h>
#include <QMenu>
@@ -38,6 +37,7 @@
#include <KSharedConfig>
#include <KConfigGroup>
#include <KMimeTypeEditor>
+#include <KJobWidgets>
#include "dolphinpart_ext.h"
#include "dolphinnewfilemenu.h"
@@ -541,7 +541,10 @@ void DolphinPart::slotOpenTerminal()
// If the given directory is not local, it can still be the URL of an
// ioslave using UDS_LOCAL_PATH which to be converted first.
- u = KIO::NetAccess::mostLocalUrl(u, widget());
+ KIO::StatJob* statJob = KIO::mostLocalUrl(u);
+ KJobWidgets::setWindow(statJob, widget());
+ statJob->exec();
+ u = statJob->mostLocalUrl();
//If the URL is local after the above conversion, set the directory.
if (u.isLocalFile()) {