diff options
-rw-r--r-- | src/corelib/tools/qlist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index 75d59350f6..5509c3adce 100644 --- a/src/corelib/tools/qlist.h +++ b/src/corelib/tools/qlist.h @@ -935,7 +935,7 @@ template <typename T> Q_OUTOFLINE_TEMPLATE QList<T> &QList<T>::operator+=(const QList<T> &l) { if (!l.isEmpty()) { - if (isEmpty()) { + if (d == &QListData::shared_null) { *this = l; } else { Node *n = (d->ref.isShared()) |