a lot of more KUrl::path() -> KUrl::toLocalFile() changes (mostly after a check for KUrl::isLocalFile())

svn path=/trunk/KDE/kdebase/apps/; revision=939835
This commit is contained in:
Christian Ehrlicher 2009-03-15 20:20:33 +00:00
parent 88a6794501
commit af49caa18e
3 changed files with 3 additions and 3 deletions

View 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);

View 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');
}
}

View 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;
}