Fix crash when an item is updated while we're in Calendar state (4 columns).
commit95c58aa73cc29e985165a46a112851341dd34bc9
authorDavid Faure <faure@kde.org>
Sun, 21 Sep 2014 15:23:43 +0000 (21 17:23 +0200)
committerDavid Faure <faure@kde.org>
Sun, 21 Sep 2014 21:57:26 +0000 (21 23:57 +0200)
tree6f33af48e7723536d3f63fcb8ab8b908d8e6828d
parenta5f7eab6efbb64bc67e5a6f8c44f7c40a48e015a
Fix crash when an item is updated while we're in Calendar state (4 columns).

layoutChanged is clearly not meant for the case where the number of columns
change. QSortFilterProxyModel asserts later on when handling dataChanged,
because it still thinks the source model has only 3 columns.

The fix isn't simple because EntityMimeTypeFilterModel gets column count and headers
from ETM's data rather than from its columnCount and headerData... and it doesn't
expect it to ever change.
akonadiconsole/akonadibrowsermodel.cpp
akonadiconsole/akonadibrowsermodel.h
akonadiconsole/browserwidget.cpp