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

QCompleter crashes when too many items are added/shown

XMLWordPrintable

    • 01e7389086d4afde33c3e2b1ece9c6d906869e08

      QCompleter crashes in QCompletionEngine::saveInCache() when the cache limit (1MB) is reached.

      The problem is the bad usage of the QMap<QModelIndex, CacheItem>::iterator erase method, which invalidates the passed iterator.
      (as documented in QMap::iterator, see example of wrong code in the Qt documentation)

      I attached the fix with correct iterator handling.

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

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            florianlink Florian Link
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes