┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-03-26 18:44:36 +0000
committerPeter Penz <[email protected]>2009-03-26 18:44:36 +0000
commit66ef40ec88f5e2d6985b0bb8dd8dca1469a855a1 (patch)
tree9243199f71a28f9973d95cf70ecad835f799c708 /src/dolphinpart.cpp
parent18a81c6301981617ab506f7d3e88f535ce459fda (diff)
Use KNewMenu::createDirectory() instead of KonqOperations::newDir() when F10 has been pressed, so that the directory gets automatically selected afterwards.
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=945037
Diffstat (limited to 'src/dolphinpart.cpp')
-rw-r--r--src/dolphinpart.cpp7
1 files changed, 7 insertions, 0 deletions
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"