From: Christian Ehrlicher Date: Sun, 15 Mar 2009 20:20:33 +0000 (+0000) Subject: a lot of more KUrl::path() -> KUrl::toLocalFile() changes (mostly after a check for... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/af49caa18e3930dc7115f56c402f6d27e2c42ef4 a lot of more KUrl::path() -> KUrl::toLocalFile() changes (mostly after a check for KUrl::isLocalFile()) svn path=/trunk/KDE/kdebase/apps/; revision=939835 --- diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index c5d85a3cc..071dce7df 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 cc3b85318..593015147 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 33017f02b..c9173b8f9 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; }