Commit 7c48344d authored by Nicolas Fella's avatar Nicolas Fella Committed by Elvis Angelaccio
Browse files

Port away from deprecated KToolInvocation::invokeTerminal

parent 998d71e5
Pipeline #50435 passed with stage
in 7 minutes and 10 seconds
......@@ -1036,7 +1036,7 @@ void DolphinMainWindow::openTerminal()
const QUrl url = m_activeViewContainer->url();
if (url.isLocalFile()) {
KToolInvocation::invokeTerminal(QString(), url.toLocalFile());
KToolInvocation::invokeTerminal(QString(), {}, url.toLocalFile());
return;
}
......@@ -1050,14 +1050,14 @@ void DolphinMainWindow::openTerminal()
statUrl = job->mostLocalUrl();
}
KToolInvocation::invokeTerminal(QString(), statUrl.isLocalFile() ? statUrl.toLocalFile() : QDir::homePath());
KToolInvocation::invokeTerminal(QString(), {}, statUrl.isLocalFile() ? statUrl.toLocalFile() : QDir::homePath());
});
return;
}
// Nothing worked, just use $HOME
KToolInvocation::invokeTerminal(QString(), QDir::homePath());
KToolInvocation::invokeTerminal(QString(), {}, QDir::homePath());
}
void DolphinMainWindow::editSettings()
......
......@@ -570,7 +570,7 @@ QString DolphinPart::localFilePathOrHome() const
void DolphinPart::slotOpenTerminal()
{
KToolInvocation::invokeTerminal(QString(), localFilePathOrHome());
KToolInvocation::invokeTerminal(QString(), {}, localFilePathOrHome());
}
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