mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Swap "Open Path in New Tab" and "Open Path in New Window"
Looks like I missed it back in
402f7f3041
— so fixing now :)
This commit is contained in:
parent
1fca465624
commit
d37cb5eb36
|
@ -209,14 +209,14 @@ void DolphinContextMenu::addItemContextMenu()
|
||||||
m_mainWindow->activeViewContainer()->view()->markUrlAsCurrent(m_fileInfo.url());
|
m_mainWindow->activeViewContainer()->view()->markUrlAsCurrent(m_fileInfo.url());
|
||||||
});
|
});
|
||||||
|
|
||||||
addAction(QIcon::fromTheme(QStringLiteral("window-new")), i18nc("@action:inmenu", "Open Path in New Window"), [this]() {
|
|
||||||
Dolphin::openNewWindow({m_fileInfo.url()}, m_mainWindow, Dolphin::OpenNewWindowFlag::Select);
|
|
||||||
});
|
|
||||||
|
|
||||||
addAction(QIcon::fromTheme(QStringLiteral("tab-new")), i18nc("@action:inmenu", "Open Path in New Tab"), [this]() {
|
addAction(QIcon::fromTheme(QStringLiteral("tab-new")), i18nc("@action:inmenu", "Open Path in New Tab"), [this]() {
|
||||||
m_mainWindow->openNewTab(KIO::upUrl(m_fileInfo.url()));
|
m_mainWindow->openNewTab(KIO::upUrl(m_fileInfo.url()));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
addAction(QIcon::fromTheme(QStringLiteral("window-new")), i18nc("@action:inmenu", "Open Path in New Window"), [this]() {
|
||||||
|
Dolphin::openNewWindow({m_fileInfo.url()}, m_mainWindow, Dolphin::OpenNewWindowFlag::Select);
|
||||||
|
});
|
||||||
|
|
||||||
addSeparator();
|
addSeparator();
|
||||||
} else {
|
} else {
|
||||||
// Insert 'Open With" entries
|
// Insert 'Open With" entries
|
||||||
|
|
Loading…
Reference in a new issue