[Bug 283066] Kontact crashes when switching to Zanshin

Kevin Ottens ervin at kde.org
Sun Oct 2 01:41:35 UTC 2011


Kevin Ottens <ervin at kde.org> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Kevin Ottens <ervin kde org>  2011-10-02 01:41:35 ---
Git commit 3a220f833481047c21dffb910d930a25f8bbc391 by Kevin Ottens.
Committed on 02/10/2011 at 03:38.
Pushed by ervin into branch 'master'.

Workaround Qt 4.8 behavior change of QAbstractProxyModel

OK, that one was tough! Turns out that in Qt 4.8 the behavior of
QAbstractProxyModel changed because it now provides a reimplementation
of hasChildren() not based on rowCount() & columnCount(), but by
forwarding the request to the source model (which in my opinion doesn't
really make sense...).

Because of that, all the proxies or views on top of subclasses of
TodoProxyModelBase were getting totally confused because of
contradictions between hasChildren() and rowCount() results.

That explains the random crashes, or empty views experienced by users
running with Qt 4.8 beta.

Pfew! I'm glad I finally noticed those reports were mentionning Qt 4.8.

BUG: 283066
BUG: 283067

M  +5    -0    src/todoproxymodelbase.cpp
M  +1    -0    src/todoproxymodelbase.h


Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the Kdepim-bugs mailing list