summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/QCMakeCacheView.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx
index 31610d7..c00839e 100644
--- a/Source/QtDialog/QCMakeCacheView.cxx
+++ b/Source/QtDialog/QCMakeCacheView.cxx
@@ -439,6 +439,11 @@ QCMakePropertyList QCMakeCacheModel::properties() const
{
QCMakePropertyList props;
+ if(!this->rowCount())
+ {
+ return props;
+ }
+
QList<QModelIndex> idxs;
idxs.append(this->index(0,0));