summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMakeCacheView.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2008-06-24 04:00:42 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2008-06-24 04:00:42 (GMT)
commit88a9a3254e6f7173578cde13fe42a6276dece48c (patch)
tree33068c72b6f9f822f2a1aedc4c4c6530027b21a3 /Source/QtDialog/QCMakeCacheView.cxx
parent2b9e0af4084b070f490690246f04058aff942dd9 (diff)
downloadCMake-88a9a3254e6f7173578cde13fe42a6276dece48c.zip
CMake-88a9a3254e6f7173578cde13fe42a6276dece48c.tar.gz
CMake-88a9a3254e6f7173578cde13fe42a6276dece48c.tar.bz2
BUG: Don't create empty property. Fixes bug #7193.
Diffstat (limited to 'Source/QtDialog/QCMakeCacheView.cxx')
-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));