diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index c5d85a3cc5..071dce7dfa 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -508,7 +508,7 @@ void DolphinPart::slotOpenTerminal() //If the URL is local after the above conversion, set the directory. if (u.isLocalFile()) { - dir = u.path(); + dir = u.toLocalFile(); } KToolInvocation::invokeTerminal(QString(), dir); diff --git a/src/panels/terminal/terminalpanel.cpp b/src/panels/terminal/terminalpanel.cpp index cc3b853182..5930151472 100644 --- a/src/panels/terminal/terminalpanel.cpp +++ b/src/panels/terminal/terminalpanel.cpp @@ -56,7 +56,7 @@ void TerminalPanel::setUrl(const KUrl& url) Panel::setUrl(url); if ((m_terminal != 0) && isVisible() && url.isLocalFile()) { - m_terminal->sendInput("cd " + KShell::quoteArg(url.path()) + '\n'); + m_terminal->sendInput("cd " + KShell::quoteArg(url.toLocalFile()) + '\n'); } } diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp index 33017f02bc..c9173b8f9e 100644 --- a/src/statusbarspaceinfo.cpp +++ b/src/statusbarspaceinfo.cpp @@ -81,7 +81,7 @@ void StatusBarSpaceInfo::refresh() return; } - KMountPoint::Ptr mp = KMountPoint::currentMountPoints().findByPath(m_url.path()); + KMountPoint::Ptr mp = KMountPoint::currentMountPoints().findByPath(m_url.toLocalFile()); if (!mp) { return; }