Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-9644

XmlListModel.reload appends rather than reloads

XMLWordPrintable

    • fd2c621c0f291cbfea5bd0c85e19f2cc6ae07bed

      In 4.6.0 XmlListModel.reload did the right thing - it cleared down the model and reloaded it.

      In 4.7 TP it looks like reload() is not clearing the existing data which results in a duplicate set every time its called.

      I have attached an example which reproduces the problem. Clicking on the red rectangle should reload the model but instead it appends duplicates.

        1. xmllistview.qml
          0.9 kB
          Paul Drummond
        2. feed.xml
          41 kB
          Bea Lam (closed Nokia identity)
        3. xmllistview-2.qml
          1.0 kB
          Bea Lam (closed Nokia identity)
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            martjone Martin Jones (closed Nokia identity) (Inactive)
            pdrummond Paul Drummond
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes