┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2010-01-27 23:35:37 +0000
committerDavid Faure <[email protected]>2010-01-27 23:35:37 +0000
commit6de569ab40bf85324533b4ee4e42099f83d65a7d (patch)
tree4960f55a17e1eaf96463dc31726733bc91de076c /src
parent17ff26c355adf945e143418c8bd756cf168d963b (diff)
Ooops, fix my port to KNewFileMenu
svn path=/trunk/KDE/kdebase/apps/; revision=1081239
Diffstat (limited to 'src')
-rw-r--r--src/dolphinnewmenuobserver.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dolphinnewmenuobserver.cpp b/src/dolphinnewmenuobserver.cpp
index e916553a0..def510c53 100644
--- a/src/dolphinnewmenuobserver.cpp
+++ b/src/dolphinnewmenuobserver.cpp
@@ -36,13 +36,17 @@ DolphinNewMenuObserver& DolphinNewMenuObserver::instance()
void DolphinNewMenuObserver::attach(const KNewFileMenu* menu)
{
- connect(menu, SIGNAL(itemCreated(const KUrl&)),
+ connect(menu, SIGNAL(fileCreated(const KUrl&)),
+ this, SIGNAL(itemCreated(const KUrl&)));
+ connect(menu, SIGNAL(directoryCreated(const KUrl&)),
this, SIGNAL(itemCreated(const KUrl&)));
}
void DolphinNewMenuObserver::detach(const KNewFileMenu* menu)
{
- disconnect(menu, SIGNAL(itemCreated(const KUrl&)),
+ disconnect(menu, SIGNAL(fileCreated(const KUrl&)),
+ this, SIGNAL(itemCreated(const KUrl&)));
+ disconnect(menu, SIGNAL(directoryCreated(const KUrl&)),
this, SIGNAL(itemCreated(const KUrl&)));
}