From 88a9a3254e6f7173578cde13fe42a6276dece48c Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Tue, 24 Jun 2008 00:00:42 -0400 Subject: [PATCH] BUG: Don't create empty property. Fixes bug #7193. --- Source/QtDialog/QCMakeCacheView.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx index 31610d7dd..c00839e46 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 idxs; idxs.append(this->index(0,0));