Qt 5.2: JS Array.push() doesn't work on QStringList
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtdeclarative-opensource-src (Ubuntu) |
Fix Released
|
Undecided
|
Timo Jyrinki |
Bug Description
See:
https:/
Please run the following code in qmlscene:
import QtQuick 2.0
DropArea {
keys: ["cat"]
}
}
Under Qt 5.0, this prints:
My animals at start: cat
My animals after push: cat,dog
My animals after insert: cat,dog,dog
But under Qt 5.2, the push() method inserts an empty string:
My animals at start: cat
My animals after push: cat,
My animals after insert: cat,,dog
Related branches
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Dmitry Shachnev: Approve
-
Diff: 81 lines (+58/-0)3 files modifieddebian/changelog (+2/-0)
debian/patches/V4-Array.push-on-QStringList-should-invoke-putIndexe.patch (+55/-0)
debian/patches/series (+1/-0)
Changed in qtdeclarative-opensource-src (Ubuntu): | |
assignee: | nobody → Timo Jyrinki (timo-jyrinki) |
Changed in qtdeclarative-opensource-src (Ubuntu): | |
status: | New → In Progress |
This bug was fixed in the package qtdeclarative- opensource- src - 5.2.1-3ubuntu10
--------------- opensource- src (5.2.1-3ubuntu10) trusty; urgency=medium
qtdeclarative-
* debian/ patches/ Fix-crash- when-appending- arrays- to-sub- models- in-lis. patch /codereview. qt-project. org/#change, 80934
- Backport from upstream https:/
(LP: #1291602)
-- Timo Jyrinki <email address hidden> Fri, 14 Mar 2014 09:37:56 +0000