diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2008-06-24 04:00:42 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2008-06-24 04:00:42 (GMT) |
commit | 88a9a3254e6f7173578cde13fe42a6276dece48c (patch) | |
tree | 33068c72b6f9f822f2a1aedc4c4c6530027b21a3 /Source/QtDialog | |
parent | 2b9e0af4084b070f490690246f04058aff942dd9 (diff) | |
download | CMake-88a9a3254e6f7173578cde13fe42a6276dece48c.zip CMake-88a9a3254e6f7173578cde13fe42a6276dece48c.tar.gz CMake-88a9a3254e6f7173578cde13fe42a6276dece48c.tar.bz2 |
BUG: Don't create empty property. Fixes bug #7193.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.cxx | 5 |
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)); |