Map selected indexes to source before modify the data
commit006ad23d0d6b49f26df9050ba72c12ad6967686e
authorVladimir Golovnev <glassez@yandex.ru>
Wed, 26 Jul 2023 15:19:32 +0000 (26 18:19 +0300)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2023 15:19:32 +0000 (26 18:19 +0300)
tree627649e9d7db695e370a275c78a0ba1b1b614ed5
parent9975230deab4c06cb4278cbae1d93be4f484b706
Map selected indexes to source before modify the data

Changing the data may affect the layout of the sort/filter model, which in turn may invalidate the indexes previously obtained from selection model before we process them all. Therefore, we must map all the selected indexes to source before start processing them.

PR #19372.
Closes #19359.
src/gui/transferlistwidget.cpp
src/gui/transferlistwidget.h