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

Joseph Wenninger jowenn at jowenn.at
Sun Oct 13 12:14:59 BST 2002


Hi

I don't get that kind of crash, the only crash I see in konqy, which
also happened before my patch is, if I right click onto an icon (eg
textfile) and choose "view in embedded texteditor" from the context
menu. The crash happens in the mouseevent handler after the popup menu
has been closed

Kind regards
Joseph Wenninger

Am Sam, 2002-10-12 um 23.27 schrieb Malte Starostik:
> 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