diff options
Diffstat (limited to 'application/widgets/ModListView.cpp')
-rw-r--r-- | application/widgets/ModListView.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/application/widgets/ModListView.cpp b/application/widgets/ModListView.cpp index aa16ad05..51b4a475 100644 --- a/application/widgets/ModListView.cpp +++ b/application/widgets/ModListView.cpp @@ -46,6 +46,10 @@ void ModListView::setModel ( QAbstractItemModel* model ) head->setStretchLastSection(false); // HACK: this is true for the checkbox column of mod lists auto string = model->headerData(0,head->orientation()).toString(); + if(head->count() < 1) + { + return; + } if(!string.size()) { head->setSectionResizeMode(0, QHeaderView::ResizeToContents); |