From 66ef40ec88f5e2d6985b0bb8dd8dca1469a855a1 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 26 Mar 2009 18:44:36 +0000 Subject: Use KNewMenu::createDirectory() instead of KonqOperations::newDir() when F10 has been pressed, so that the directory gets automatically selected afterwards. CCMAIL: rahman.duran@gmail.com svn path=/trunk/KDE/kdebase/apps/; revision=945037 --- src/dolphinpart.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/dolphinpart.cpp') diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index dd590efd5..93bd3ce5d 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -125,6 +125,7 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QVariantL m_actionHandler = new DolphinViewActionHandler(actionCollection(), this); m_actionHandler->setCurrentView(m_view); + connect(m_actionHandler, SIGNAL(createDirectory()), SLOT(createDirectory())); m_remoteEncoding = new DolphinRemoteEncoding(this, m_actionHandler); connect(this, SIGNAL(aboutToOpenURL()), @@ -543,4 +544,10 @@ void DolphinPart::updateProgress(int percent) m_extension->loadingProgress(percent); } +void DolphinPart::createDirectory() +{ + m_newMenu->setPopupFiles(url()); + m_newMenu->createDirectory(); +} + #include "dolphinpart.moc" -- cgit v1.3