diff options
Diffstat (limited to 'src/qmlmodels/qqmllistmodel.cpp')
-rw-r--r-- | src/qmlmodels/qqmllistmodel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmlmodels/qqmllistmodel.cpp b/src/qmlmodels/qqmllistmodel.cpp index 63587848a0..65182af3d2 100644 --- a/src/qmlmodels/qqmllistmodel.cpp +++ b/src/qmlmodels/qqmllistmodel.cpp @@ -281,6 +281,8 @@ StringOrTranslation::~StringOrTranslation() void StringOrTranslation::setString(const QString &s) { clear(); + if (s.isEmpty()) + return; QString mutableString(s); QString::DataPointer dataPointer = mutableString.data_ptr(); arrayData = dataPointer->d_ptr(); |