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

QItemSelectionModel::hasSelection is inconsistent

    XMLWordPrintable

    Details

    • Commits:
      0c2125458a9fdddaf3385b257ba4350da872a1d1 (qt/qtbase/dev) 8eda2c4c57e1f30e49a99d38ff1865397b5749e8 (qt/qtbase/6.2)

      Description

      Selecting some items and then marking them as unselectable results in a situation where nothing is selected, yet hasSelection() returns true.

      To reproduce, just run unit tests in
      https://codereview.qt-project.org/c/qt/qtbase/+/345534/9

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              andreasbuhr Andreas Buhr
              Reporter:
              andreasbuhr Andreas Buhr
              PM Owner:
              Vladimir Minenko Vladimir Minenko
              RnD Owner:
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes