┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinnewmenu.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-03-17 20:47:03 +0000
committerPeter Penz <[email protected]>2009-03-17 20:47:03 +0000
commitb8c2f5377772c618b2b032bcd67cd32045c97fc9 (patch)
treea40e28a867bd741587c8afa785a17da3a245b9fc /src/dolphinnewmenu.cpp
parentb7b31ce1946ad36b7f5d86838d878aa12b0dfb11 (diff)
After creating an item with the "Create New..." menu, the new item should get selected and it must be assured that the item stays visible. Thanks a lot to Rahman Duran for the original patch and the good discussions :-)
Open issues: - F10 shortcut does not work yet (interface extension might be done in KNewMenu) - Does not work in column view yet, but this is a colum view specific issue. CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=940624
Diffstat (limited to 'src/dolphinnewmenu.cpp')
-rw-r--r--src/dolphinnewmenu.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dolphinnewmenu.cpp b/src/dolphinnewmenu.cpp
index f4309ade3..4b905734e 100644
--- a/src/dolphinnewmenu.cpp
+++ b/src/dolphinnewmenu.cpp
@@ -19,7 +19,9 @@
***************************************************************************/
#include "dolphinnewmenu.h"
+
#include "dolphinmainwindow.h"
+#include "dolphinnewmenuobserver.h"
#include "dolphinstatusbar.h"
#include "dolphinview.h"
#include "dolphinviewcontainer.h"
@@ -31,10 +33,12 @@ DolphinNewMenu::DolphinNewMenu(QWidget* parent, DolphinMainWindow* mainWin) :
KNewMenu(mainWin->actionCollection(), parent, "create_new"),
m_mainWin(mainWin)
{
+ DolphinNewMenuObserver::instance().attach(this);
}
DolphinNewMenu::~DolphinNewMenu()
{
+ DolphinNewMenuObserver::instance().detach(this);
}
void DolphinNewMenu::slotResult(KJob* job)