]> cloud.milkyroute.net Git - dolphin.git/commitdiff
a lot of more KUrl::path() -> KUrl::toLocalFile() changes (mostly after a check for...
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>
Sun, 15 Mar 2009 20:20:33 +0000 (20:20 +0000)
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>
Sun, 15 Mar 2009 20:20:33 +0000 (20:20 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=939835

src/dolphinpart.cpp
src/panels/terminal/terminalpanel.cpp
src/statusbarspaceinfo.cpp

index c5d85a3cc5cd4c98f3ce03db50c231589396dfd3..071dce7dfa714a2570f71dd154485a55d1b09af7 100644 (file)
@@ -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);
index cc3b85318289c4a95b431c5942d119cec60f4105..59301514723b8538fd82bf7ecfb6872105361d3e 100644 (file)
@@ -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');
     }
 }
 
index 33017f02bc1b853873b144408e9be7f9708258dc..c9173b8f9ef2feee26d18ca34c8ed2dbda5cbe7b 100644 (file)
@@ -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;
     }