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 Q_OUTOFLINE_TEMPLATE QList &QList::operator+=(const QList &l) { if (!l.isEmpty()) { - if (isEmpty()) { + if (d == &QListData::shared_null) { *this = l; } else { Node *n = (d->ref.isShared())