mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
88a6794501
commit
af49caa18e
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue