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

List:       kde-core-devel
Subject:    More hints on that long-lasting QIconView crash
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-03-01 0:09:49
[Download RAW message or body]

As most of you know, alas, konqueror has a very nasty bug,
making it crash sometimes when clicking on a file (like a text file)
that opens a new view, because somehow something happens in
the already-deleted icon view.

I tracked it down, finally !

On a mouseReleaseEvent, QIconView does:

        emit mouseButtonClicked( e->button(), item, e->globalPos() );
        emit clicked( item );
        emit clicked( item, e->globalPos() );  

Since the first one (or the second, didn't check) deletes
the iconview (in konqueror, which switches to another view),
when it comes back here, the third emit
looks into a deleted list of receivers, hence the crash...

No idea what a possible fix could be, though... (or it would be hacky,
like relying on the order those emits are done).

Reggie ?

Is it wrong for konqueror to connect to more than one of those signals ?

-- 
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today

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

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