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

Invalid check in QDeclarativeRepeater::itemsRemoved

    XMLWordPrintable

Details

    • e68c90aa37da6f0eb97f658e58dbb384325cdad2

    Description

      In QDeclarativeRepeater::itemsRemoved there is no check if count is already zero.

      So Bauhaus is crashing for count == 0!

      void QDeclarativeRepeater::itemsRemoved(int index, int count)
      {
      Q_D(QDeclarativeRepeater);
      if (!isComponentComplete())
      return;
      while (count--) {
      QDeclarativeItem *item = d->deletables.takeAt(index);
      if (item)

      { d->model->release(item); }

      }
      }

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            bubke Marco Bubke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes