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

List:       kmail-devel
Subject:    Fwd: Re: Bug in qRemovePostRoutine
From:       Waldo Bastian <bastian () kde ! org>
Date:       2002-02-26 4:37:39
[Download RAW message or body]

Yay :-)

Cheers,
Waldo

----------  Forwarded Message  ----------

Subject: Re: Bug in qRemovePostRoutine
Date: Tue, 26 Feb 2002 02:51:25 +0100
From: qt-bugs@trolltech.com
To: bastian@kde.org
Cc: qt-bugs@trolltech.com

> In Qt 3.0.2, or what is almost Qt 3.0.2, the qRemovePostRoutine can lock =
> up=20
> due to an error in the logic of the loop.

The following patch should fix the problem:

==== //depot/qt/3.0/src/kernel/qapplication.cpp#31 -
/home/sam/troll/qt3.0/src/kernel/qapplication.cpp ====
--- /tmp/tmp.6928.0	Tue Feb 26 11:47:57 2002
+++ /home/sam/troll/qt3.0/src/kernel/qapplication.cpp	Tue Feb 26 11:47:29
 2002 @@ -426,6 +426,8 @@
 	if ( *it == p ) {
 	    postRList->remove( it );
 	    it = postRList->begin();
+	} else {
+	    it++;
 	}
     }
 }

Kind regards
//Sam


  sam@trolltech.com                        Fax: +47 21604801
  Trolltech AS, Waldemar Thranes gt. 98, N-0175 Oslo, Norway

-------------------------------------------------------

-- 
Advanced technology only happens when people take a basic idea and add to it.
 -- Bob Bemer

_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

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