GH-1453 report version file problems in the version page

This commit is contained in:
Petr Mrázek committed 2016-02-21 01:44:27 +01:00
1 parent 495d320ce2
commit 1a0bbdd9ac
11 files changed
+305 -26

No files matched your search

+4
View File
@@ -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);