Bug 168879

Summary: kget cancels kde logout
Product: [Applications] kget Reporter: S. Burmeister <sven.burmeister>
Component: generalAssignee: KGet authors <kget>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: quit kget if the close event comes from system shutdown
set mainwindow WA_DeleteOnClose = false

Description S. Burmeister 2008-08-10 23:58:59 UTC
Version:            (using KDE 4.1.0)
Installed from:    SuSE RPMs
OS:                Linux

If you have the kget window open and try to log out of kde, kget minimises to tray and the log out is canceled.

I guess there is some bug in the close event handling.

Expected behaviour, save d/l list and exit in order to let kde shut down.
Comment 1 Javier goday 2008-08-11 20:07:40 UTC
Created attachment 26788 [details]
quit kget if the close event comes from system shutdown

the problem is in the mainwindow->closeEvent, if the systemtray is enabled the
event is ignored. So we need to decide if we want to quit kget or only hide it
Comment 2 S. Burmeister 2008-08-11 20:17:05 UTC
> the problem is in the mainwindow->closeEvent, if the systemtray is enabled
> the event is ignored. So we need to decide if we want to quit kget or only
> hide it


Can't you just have a look at the other applications, that can be minimised to 
tray, yet do not interrupt logout? Like amarok, kopete or kgpg etc.
Comment 3 Javier goday 2008-08-12 07:46:38 UTC
Created attachment 26796 [details]
set mainwindow WA_DeleteOnClose = false

Set mainwindow DeleteOnClose attribute = false, so don't need to reimplement
closeEvent method
Comment 4 Javier goday 2008-08-12 20:31:47 UTC
SVN commit 845969 by jgoday:

Don't ignore the close event when shutdown
BUG:168879


 M  +15 -8     mainwindow.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=845969