[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: system tray and pop-up menu
From:       Sergio Moretti <sermore () libero ! it>
Date:       2000-10-12 11:40:29
[Download RAW message or body]

On Thu, 12 Oct 2000, David Faure wrote:
> On Thursday 12 October 2000 11:10, Sergio Moretti wrote :
> >Hi,
> >I have added a KListAction (or KSelectAction) entry to a contextMenu
> > of a system tray widget, and it works, but not the "quit" button;
> > when pressed it crash the application emitting:
> >
> >QObject::connect: No such signal QObject::activatedRedirect(int)
> >QObject::connect:  (sender name:   '')
> >QObject::connect:  (receiver name: 'unnamed')
> >QObject::connect: No such signal QObject::highlightedRedirect(int)
> >QObject::connect:  (sender name:   '')
> >QObject::connect:  (receiver name: 'unnamed')
> >
> >Note that only with such actions don't work, with normal entries all
> >goes well.
> >
> >Any hints?
>
> Yes, this happens if a QPopupMenu isn't deleted when the application
> exits (and some library unloading has taken place).
>
> Check that you delete your popup menus if they have no parent,
> and check that your actions have a parent that gets deleted, too
> (usually an action-collection, but it doesn't have to be).

The KSelectAction is shared between main menu and system tray widget's 
menu, and its parent is the main view. Do I have to duplicate the 
action?
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic