Bug in eventloop handling in KDE's qt-copy (half a day old)

Malte Starostik malte at kde.org
Sun Oct 13 00:27:51 BST 2002


On Sunday 13 October 2002 02:21, Joseph Wenninger wrote:
> Hi
>
> I think I found a bug in the enterLoop method. I have an application,
> which uses excessivly enter_loop, exit_loop, which worked perfect with
> Qt 3.0.x, but doesn't work anymore with Qt 3.1 beta X. The application
> is quanta in the KDE's cvs reprository.
>
> If I compare the code from Qt 3.0.5 and 3.1 beta, I think (and tested)
> that the following patch should fix the problem, and I can't see any
> negative side effects.
[snip]
> -    if ( d->looplevel <= 1 ) {
> +    if ( d->looplevel < 1 ) {
It's a fix for crashes on exit in plugin using apps like konqueror. If konq 
still works with your fix, please send it to qt-bugs.

-Malte
-- 
#!/usr/bin/perl
$t='char|short|int|long|void';%m=qw(U "unsigned\040$3" W "w$3_t");while(<>)
{/#define UNICODE/and$m{T}=$m{W};s/\b(LP)?([UWT])?($t)\b/lc(eval$m{$2}||$3)
.($1?'*':'')/gei;print;}print"/* Cleaned by Malte's WinAPI sanitizer */\n";





More information about the kde-core-devel mailing list