mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
konsole: prepend the action data with the current working directory if it is relative path
fixes opening of relative path/URL Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
fb92498235
commit
7341176f40
1 changed files with 5 additions and 1 deletions
|
@ -487,8 +487,12 @@ void SessionController::handleOpenWithAction()
|
|||
|
||||
const QStringList actionData = action->data().toStringList();
|
||||
Q_ASSERT(actionData.count() == 2);
|
||||
QString actionDataString = actionData.at(1);
|
||||
if (QDir::isRelativePath(actionDataString)) {
|
||||
actionDataString = _session->currentWorkingDirectory() + QDir::separator() + actionDataString;
|
||||
}
|
||||
QStringList actionUrls;
|
||||
actionUrls << actionData.at(1);
|
||||
actionUrls << actionDataString;
|
||||
KToolInvocation::self()->startServiceByStorageId(actionData.at(0), actionUrls, QApplication::activeWindow());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue