Summary: | Kontact crashes when switching to Zanshin | ||
---|---|---|---|
Product: | [Applications] kontact | Reporter: | Georg Greve <greve> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ervin |
Priority: | NOR | ||
Version: | 4.7.1 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Georg Greve
2011-09-30 07:11:41 UTC
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 http://commits.kde.org/zanshin/3a220f833481047c21dffb910d930a25f8bbc391 |