Commit 6cb4d81a authored by Piotr Henryk Dabrowski's avatar Piotr Henryk Dabrowski Committed by Nate Graham
Browse files

Use KParts::ReadOnlyPart::localFilePath() in DolphinPart::slotOpenTerminal()

Reviewers: ngraham, elvisangelaccio, #dolphin

Reviewed By: ngraham, elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision:
parent 08049836
......@@ -533,23 +533,7 @@ void DolphinPart::setNameFilter(const QString& nameFilter)
void DolphinPart::slotOpenTerminal()
QString dir(QDir::homePath());
QUrl u(url());
// If the given directory is not local, it can still be the URL of an
// ioslave using UDS_LOCAL_PATH which to be converted first.
KIO::StatJob* statJob = KIO::mostLocalUrl(u);
KJobWidgets::setWindow(statJob, widget());
u = statJob->mostLocalUrl();
//If the URL is local after the above conversion, set the directory.
if (u.isLocalFile()) {
dir = u.toLocalFile();
KToolInvocation::invokeTerminal(QString(), dir);
KToolInvocation::invokeTerminal(QString(), KParts::ReadOnlyPart::localFilePath());
void DolphinPart::slotFindFile()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment