From 233832f4966cad1354dc04f5ebb33d49a39887d6 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Sun, 24 Nov 2013 18:49:56 +0100 Subject: [PATCH] cas --- src/gui/messagesview.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/messagesview.cpp b/src/gui/messagesview.cpp index 697149a84..b8a2f54e1 100644 --- a/src/gui/messagesview.cpp +++ b/src/gui/messagesview.cpp @@ -12,6 +12,11 @@ MessagesView::MessagesView(QWidget *parent) : QTreeView(parent) { setModel(m_proxyModel); + // FIXME: Sometimes ASSERT occurs if model provides less columns + // than we set resize mode for. + qDebug("Loading MessagesView with %d columns.", + header()->count()); + #if QT_VERSION >= 0x050000 // Setup column resize strategies. header()->setSectionResizeMode(MSG_DB_ID_INDEX, QHeaderView::Interactive);