Ooops, fix my port to KNewFileMenu

svn path=/trunk/KDE/kdebase/apps/; revision=1081239
This commit is contained in:
David Faure 2010-01-27 23:35:37 +00:00
parent 17ff26c355
commit 6de569ab40

View 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&)));
}