Fixed the content selector checkboxes appearing as partially checked

This commit is contained in:
pvdk 2013-11-30 12:16:57 +01:00
parent 8b3e852ffc
commit 1512ac11ad

View file

@ -207,8 +207,11 @@ QVariant ContentSelectorModel::ContentModel::data(const QModelIndex &index, int
case Qt::CheckStateRole:
{
if (!file->isGameFile())
return isChecked(file->filePath());
if (file->isGameFile())
return QVariant();
return mCheckStates[file->filePath()];
break;
}