From 1512ac11adcc4d1d9567447d9704088d48bba95d Mon Sep 17 00:00:00 2001 From: pvdk Date: Sat, 30 Nov 2013 12:16:57 +0100 Subject: [PATCH] Fixed the content selector checkboxes appearing as partially checked --- components/contentselector/model/contentmodel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/contentselector/model/contentmodel.cpp b/components/contentselector/model/contentmodel.cpp index 9183003295..0d274474c6 100644 --- a/components/contentselector/model/contentmodel.cpp +++ b/components/contentselector/model/contentmodel.cpp @@ -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; }