mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +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
|
@ -508,7 +508,7 @@ void DolphinPart::slotOpenTerminal()
|
||||||
|
|
||||||
//If the URL is local after the above conversion, set the directory.
|
//If the URL is local after the above conversion, set the directory.
|
||||||
if (u.isLocalFile()) {
|
if (u.isLocalFile()) {
|
||||||
dir = u.path();
|
dir = u.toLocalFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
KToolInvocation::invokeTerminal(QString(), dir);
|
KToolInvocation::invokeTerminal(QString(), dir);
|
||||||
|
|
|
@ -56,7 +56,7 @@ void TerminalPanel::setUrl(const KUrl& url)
|
||||||
|
|
||||||
Panel::setUrl(url);
|
Panel::setUrl(url);
|
||||||
if ((m_terminal != 0) && isVisible() && url.isLocalFile()) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
KMountPoint::Ptr mp = KMountPoint::currentMountPoints().findByPath(m_url.path());
|
KMountPoint::Ptr mp = KMountPoint::currentMountPoints().findByPath(m_url.toLocalFile());
|
||||||
if (!mp) {
|
if (!mp) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue