<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
<title></title>
       Ok, hmm. I'm assuming you mean that we should close the windows like
they are done now AND emit the signal. That way you can still ignore or hide
the window into the system tray and still connect the quitSelected signal
to your appropriate quit slot on your application. Good idea, I've attached 
a patch that does exactly this. Just say the word and I'll commit it.<br>
<br>
/Mauritz<br>
Underscore AB<br>
 <br>
 Matthias Ettrich wrote:<br>
 
<blockquote type="cite"
 cite="mid200206171739.59093.ettrich@trolltech.com">   
  <pre wrap="">On Monday 17 June 2002 16:18, you wrote:
  </pre>
   
  <blockquote type="cite">     
    <pre wrap="">  I forgot to post this directly to you as the maintainer of the code.
    </pre>
   </blockquote>
   
  <pre wrap=""><!---->
We can't change that, it will break too many applications.

 And I do not believe the current semantics are much worse than what you 
suggest. The close approach makes it possible for applications to do cleanups 
currently, or even cancel the quit.

So yes, I think this will break applications.

I suggest we add another signal to KSystemTray (in KDE 3.1)

public signals:
   void quitSelected();




kopete can they connect this signal to KApplication::quit().

 Matthias


  </pre>
   
  <blockquote type="cite">     
    <pre wrap="">/Mauritz
Underscore AB

-------- Original Message --------
Subject: Behaviour of KSystemTray Quit
Resent-Date: 14 Jun 2002 08:48:02 -0000
Resent-From: <a
 class="moz-txt-link-abbreviated"
 href="mailto:kde-core-devel@mail.kde.org">kde-core-devel@mail.kde.org</a>
Resent-CC: recipient list not shown: ;
Date: Fri, 14 Jun 2002 10:39:47 +0200
From: Henrik Johnson <a
 class="moz-txt-link-rfc2396E" href="mailto:hpj@globecom.se"><hpj@globecom.se></a>
Reply-To: <a
 class="moz-txt-link-abbreviated"
 href="mailto:kde-core-devel@mail.kde.org">kde-core-devel@mail.kde.org</a>
To: kde-core-devel <a
 class="moz-txt-link-rfc2396E" href="mailto:kde-core-devel@mail.kde.org"><kde-core-devel@mail.kde.org></a>
CC: <a
 class="moz-txt-link-abbreviated" href="mailto:kopete-devel@kde.org">kopete-devel@kde.org</a>



The KSystemTray action of Quit is now to close the window (Or all
windows if no window is available). Shouldn't the action instead be
connected to the kApp -> quit slot. It might seem the same, but it
isn't. Especially if the applications default action on closing the main
window is to hide in the system tray (The case at hand is kopete which
behaves exactly this way).

Will this break other applications or can I just commit this change?

/Mauritz
Underscore AB
    </pre>
   </blockquote>
   
  <pre wrap=""><!----> 
  </pre>
 </blockquote>
 <br>
 
</body>
</html>