Summary: | kscd cannot be quit | ||
---|---|---|---|
Product: | kscd | Reporter: | ubq7 |
Component: | general | Assignee: | Aaron J. Seigo <aseigo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
ubq7
2003-10-01 22:54:02 UTC
Subject: KDE_3_1_BRANCH: kdemultimedia/kscd CVS commit by lunakl: Backport r1.183. CCMAIL: 65343-done@bugs.kde.org M +15 -2 kscd.cpp 1.176.2.8 --- kdemultimedia/kscd/kscd.cpp #1.176.2.7:1.176.2.8 @@ -1024,5 +1024,18 @@ void KSCD::closeEvent( QCloseEvent *e ) { - if (docking) + // we need to figure out if we were called by the system tray + // to decide whether or not to actually quit or not =/ + // this behaviour of ksystemtray is, IMHO, very silly + QObject* caller = sender(); + while (caller) + { + if (caller == dock_widget) + { + break; + } + caller = caller->parent(); + } + + if (docking && !caller && !kapp->sessionSaving()) { hide(); The same happens for me (KDE 3.4 from Suse RPMs). If I try to close Kscd using system tray, it does nothing. If I do it from menu in Kscd, it closes. I have KDE 3.4 and this bug occurs to me in a different way: - If I enable the system try icon for Kscd, if I right-click on the taskbar icon and click "Quit" Kscd ends ok. - But, if I disabled system try icon, it's impossible to close Kscd, I need to kill the window. This bug occurs to me since long time. i can duplicate with 3.4.0 but not with HEAD. so it's been fixed at some point. |