Bug 146062

Summary: KSystemTray ignores cancel when program is minimized to systemtray
Product: [Frameworks and Libraries] kdelibs Reporter: Lawrence Lee <valheru>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Test program to illustrate

Description Lawrence Lee 2007-05-28 12:11:45 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 4.1.2 20070423 (prerelease) 
OS:                Linux

When running a program that has support for KSystemTrayIcon, choosing the menu option "Quit" will pop up a message box that asks you if you are sure if you want to quit. If you cancel using the "Cancel" button, the application stays running if it is visible. On the other hand, if it is minimized to the system tray, it exits. This is using KDE4 Alpha 1.
Comment 1 Lawrence Lee 2007-05-29 19:12:54 UTC
Created attachment 20718 [details]
Test program to illustrate

Just a small program to illustrate that this happens in the simplest of cases.
Compile using "gcc -I/opt/qt4/include/ -I/opt/kde4/include/ -L/opt/kde4/lib
-L/opt/qt4/lib -lQtCore -lQtGui -lkdecore -lkdeui -o test main.cc" Remove the
quotes and tweak the KDE4/QT paths for your distro.
Comment 2 Pino Toscano 2007-12-04 22:16:42 UTC
Does the problem still happen with newer kde(libs)4 versions?
Comment 3 Lawrence Lee 2007-12-05 15:06:39 UTC
You can close this bug, it was caused by my not setting KApplication::setQuitOnLastWindowClosed( false ) My bad, sorry. It was not immediately evident from either the Qt4 documentation or the KDE4 documentation that this needed to be done, however.
Comment 4 Lawrence Lee 2007-12-05 15:09:35 UTC
Resolved