From: David Faure Date: Wed, 27 Jan 2010 23:35:37 +0000 (+0000) Subject: Ooops, fix my port to KNewFileMenu X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/6de569ab40bf85324533b4ee4e42099f83d65a7d Ooops, fix my port to KNewFileMenu svn path=/trunk/KDE/kdebase/apps/; revision=1081239 --- 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&))); }