aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/util')
-rw-r--r--src/qml/util/qqmladaptormodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/util/qqmladaptormodel.cpp b/src/qml/util/qqmladaptormodel.cpp
index 2b50a0867c..831663fb7b 100644
--- a/src/qml/util/qqmladaptormodel.cpp
+++ b/src/qml/util/qqmladaptormodel.cpp
@@ -990,7 +990,7 @@ int QQmlAdaptorModel::rowCount() const
int QQmlAdaptorModel::columnCount() const
{
- return qMax(isValid() ? 1 : 0, accessors->columnCount(*this));
+ return qMax(0, accessors->columnCount(*this));
}
int QQmlAdaptorModel::rowAt(int index) const