Bug 146062 - KSystemTray ignores cancel when program is minimized to systemtray
Summary: KSystemTray ignores cancel when program is minimized to systemtray
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-28 12:11 UTC by Lawrence Lee
Modified: 2007-12-05 15:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Test program to illustrate (552 bytes, text/plain)
2007-05-29 19:12 UTC, Lawrence Lee
Details

Note You need to log in before you can comment on or make changes to this bug.
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