From 93a6978655fc1ce9e0fd8ea08029859f71c32db9 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sun, 16 Nov 2025 13:53:58 +0100 Subject: dolphinview: when creating a subfolder expand to it if in details mode So the new folder is in view. --- src/dolphinmainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 4d3fedbce..37f328e96 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1821,6 +1821,9 @@ void DolphinMainWindow::setupActions() menu->setIcon(QIcon::fromTheme(QStringLiteral("list-add"))); m_newFileMenu->setPopupMode(QToolButton::InstantPopup); connect(menu, &QMenu::aboutToShow, this, &DolphinMainWindow::updateNewMenu); + connect(m_newFileMenu, &KNewFileMenu::directoryCreated, this, [this](const QUrl &createdDirectory) { + activeViewContainer()->view()->expandToUrl(createdDirectory); + }); QAction *newWindow = KStandardAction::openNew(this, &DolphinMainWindow::openNewMainWindow, actionCollection()); newWindow->setText(i18nc("@action:inmenu File", "New &Window")); -- cgit v1.3