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

List:       kde-core-devel
Subject:    Re: [PATCH] ksystemtray.cpp
From:       Simon Hausmann <hausmann () kde ! org>
Date:       2002-04-13 7:22:13
[Download RAW message or body]

On Fri, Apr 12, 2002 at 11:50:53PM +0200, Martijn Klingens wrote:
> On Friday 12 April 2002 23:37, Waldo Bastian wrote:
> > I think such a change can potentially cause havoc in existing code, yes. I
> > am not familar enough with ksystemtray or it's usage to say much more about
> > it.
> 
> Me neither. All I know is that relying on closing the main window to quit an 
> app is a bit weird, since that wouldn't abort apps with background jobs. Or 
> that might have been exactly the purpose, to just close the window and don't 
> really quit until such a job is finished. Argl... so much for someone who 
> *knows* this code...

I think it is a bad idea to call qApp->quit() from a library class,
because it unconditionally aborts the application, completely
disobeying KApplication's reference counting (which exists for the
very reason of preventing leaving the event loop in case there are
still background jobs like KIO tranfers) .

What was wrong with closeAllWindows() ?

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

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