]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Ooops, fix my port to KNewFileMenu
authorDavid Faure <faure@kde.org>
Wed, 27 Jan 2010 23:35:37 +0000 (23:35 +0000)
committerDavid Faure <faure@kde.org>
Wed, 27 Jan 2010 23:35:37 +0000 (23:35 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1081239

src/dolphinnewmenuobserver.cpp

index e916553a03a4b6679b6002976f97abff971a8199..def510c5394410b4f6f7b846c1613821adec43a8 100644 (file)
@@ -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&)));
 }