Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 26ce84ef authored by Boudewijn Rempt's avatar Boudewijn Rempt

Avoid asserting on setting picking a filter

We never used to come across this because pretty much everyone uses
a Qt with asserts disabled, I think.

Fixes T1095
parent 745626a0
......@@ -96,7 +96,9 @@ public:
void setModel(QAbstractItemModel *model)
{
QTreeView::setModel(model);
header()->setResizeMode(0, QHeaderView::ResizeToContents);
if (header()->visualIndex(0) != -1) {
header()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
}
}
protected:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment