1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-07 10:51:45 +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:
Ilya Bizyaev 2023-08-22 23:22:05 +02:00
parent 1fca465624
commit d37cb5eb36
No known key found for this signature in database
GPG Key ID: 29AACC9F9F66C5B4

View File

@ -209,14 +209,14 @@ void DolphinContextMenu::addItemContextMenu()
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]() {
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();
} else {
// Insert 'Open With" entries