[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdecore
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2005-03-22 16:22:21
Message-ID: 20050322162221.9CDEF3C3 () office ! kde ! org
[Download RAW message or body]

CVS commit by lunakl: 

Stop previous startup notification for the application immediately if new one is set.
In #99205 the dcopstart-like functionality in kfmclient launches konqueror,
waits for it to register with DCOP and then it uses. And since it's kinda unreliable
when having two kfmclient's started at the same time they may both use
the same konqueror and ignore the second one.
BUG: 99205


  M +5 -0      kapplication.cpp   1.707


--- kdelibs/kdecore/kapplication.cpp  #1.706:1.707
@@ -2883,4 +2883,9 @@ QCString KApplication::startupId() const
 void KApplication::setStartupId( const QCString& startup_id )
 {
+    if( startup_id == d->startup_id )
+        return;
+#if defined Q_WS_X11
+    KStartupInfo::handleAutoAppStartedSending(); // finish old startup notification if needed
+#endif
     if( startup_id.isEmpty())
         d->startup_id = "0";


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic