mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Ooops, fix my port to KNewFileMenu
svn path=/trunk/KDE/kdebase/apps/; revision=1081239
This commit is contained in:
parent
17ff26c355
commit
6de569ab40
1 changed files with 6 additions and 2 deletions
|
@ -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&)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue