diff options
| author | Peter Penz <[email protected]> | 2009-03-26 18:44:36 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-03-26 18:44:36 +0000 |
| commit | 66ef40ec88f5e2d6985b0bb8dd8dca1469a855a1 (patch) | |
| tree | 9243199f71a28f9973d95cf70ecad835f799c708 /src/dolphinmainwindow.cpp | |
| parent | 18a81c6301981617ab506f7d3e88f535ce459fda (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/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index c2939e59a..35bc8bb86 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -543,6 +543,12 @@ void DolphinMainWindow::updateNewMenu() m_newMenu->setPopupFiles(activeViewContainer()->url()); } +void DolphinMainWindow::createDirectory() +{ + m_newMenu->setPopupFiles(activeViewContainer()->url()); + m_newMenu->createDirectory(); +} + void DolphinMainWindow::quit() { close(); @@ -976,6 +982,7 @@ void DolphinMainWindow::init() setCaption(homeUrl.fileName()); m_actionHandler = new DolphinViewActionHandler(actionCollection(), this); connect(m_actionHandler, SIGNAL(actionBeingHandled()), SLOT(clearStatusBar())); + connect(m_actionHandler, SIGNAL(createDirectory()), SLOT(createDirectory())); ViewProperties props(homeUrl); m_viewTab[m_tabIndex].primaryView = new DolphinViewContainer(this, m_viewTab[m_tabIndex].splitter, @@ -987,9 +994,9 @@ void DolphinMainWindow::init() view->reload(); m_activeViewContainer->show(); m_actionHandler->setCurrentView(view); - + m_remoteEncoding = new DolphinRemoteEncoding(this, m_actionHandler); - connect(this, SIGNAL(urlChanged(const KUrl&)), + connect(this, SIGNAL(urlChanged(const KUrl&)), m_remoteEncoding, SLOT(slotAboutToOpenUrl())); m_tabBar = new KTabBar(this); |
