Bug 65343

Summary: kscd cannot be quit
Product: kscd Reporter: ubq7
Component: generalAssignee: 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
Version:            (using KDE KDE 3.1.4)
Installed from:    Debian testing/unstable Packages
OS:          Linux

If I close the main window, the taskbar icon stays there, right-clicking on the taskbar icon and clicking 'Beenden' (german for 'Quit') does absolutely nothing (taskbar icon stays there).
The only way to quit kscd is to kill it.

Also, on start I see the following error message:
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.

HS
Comment 1 Lubos Lunak 2003-10-02 11:22:05 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();


Comment 2 Krzysztof Lichota 2005-04-12 08:50:02 UTC
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.
Comment 3 IƱaki Baz Castillo 2005-04-14 00:10:40 UTC
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.
Comment 4 Aaron J. Seigo 2005-04-14 00:23:19 UTC
i can duplicate with 3.4.0 but not with HEAD. so it's been fixed at some point.