Clementine-audio-player-Mac.../src/internet/core
Jim Broadus ccba649f62 Clear cached indexes in InternetModel when rows are removed
When opening a context menu on an internet item, the selected items are stored
in the InternetModel instance. In cases when the items are removed, certain menu
options can cause a crash. A specific case is downloading a podcast when the
user has chosen to limit the number of visible episodes. The subtree for the
podcast is rebuilt after the download completes, so if a context menu was opened
during the download time, selecting the append to playlist option will attempt
to operate on bad indexes.

This fix uses the rowsAboutToBeRemoved signal to remove these stored indexes.

There are likely another rare cases where the indexes can become invalid. For
example, sibling items within a subtree may be removed, causing the stored
indexes to become incorrect or out of range.
2020-12-15 22:36:30 +00:00
..
cloudfilesearchprovider.cpp Reformat all C++ 2020-09-22 14:56:06 +01:00
cloudfilesearchprovider.h Fix header guards in internet/ 2014-12-18 23:54:21 +01:00
cloudfileservice.cpp Reformat all C++ 2020-09-22 14:56:06 +01:00
cloudfileservice.h Reformat all C++ 2020-09-22 14:56:06 +01:00
geolocator.cpp Reformat all C++ 2020-09-22 14:56:06 +01:00
geolocator.h Remove extra ';' 2019-11-10 00:30:18 +01:00
internetmimedata.h Reformat all C++ 2020-09-22 14:56:06 +01:00
internetmodel.cpp Clear cached indexes in InternetModel when rows are removed 2020-12-15 22:36:30 +00:00
internetmodel.h Clear cached indexes in InternetModel when rows are removed 2020-12-15 22:36:30 +00:00
internetplaylistitem.cpp Reformat all C++ 2020-09-22 14:56:06 +01:00
internetplaylistitem.h Reformat all C++ 2020-09-22 14:56:06 +01:00
internetservice.cpp Fix dropbox json parsing. 2020-02-15 15:00:49 +00:00
internetservice.h Reformat all C++ 2020-09-22 14:56:06 +01:00
internetshowsettingspage.cpp Reformat all C++ 2020-09-22 14:56:06 +01:00
internetshowsettingspage.h Reformat all C++ 2020-09-22 14:56:06 +01:00
internetshowsettingspage.ui use iconloader & cleanup previous remnants 2015-12-01 00:32:20 -06:00
internetsongmimedata.h Reformat all C++ 2020-09-22 14:56:06 +01:00
internetview.cpp Reformat all C++ 2020-09-22 14:56:06 +01:00
internetview.h Fix autoscroll fail to follow the selection in "InternetView" 2016-01-15 07:51:15 +03:00
internetviewcontainer.cpp Reformat all C++ 2020-09-22 14:56:06 +01:00
internetviewcontainer.h Reformat all C++ 2020-09-22 14:56:06 +01:00
internetviewcontainer.ui Fix compilation with moved files in internet/ 2014-12-18 23:35:21 +01:00
localredirectserver.cpp Move files around and make subdirectories inside src/internet, move src/podcasts to src/internet 2014-12-18 00:39:20 +01:00
localredirectserver.h Fix header guards in internet/ 2014-12-18 23:54:21 +01:00
oauthenticator.cpp Reformat all C++ 2020-09-22 14:56:06 +01:00
oauthenticator.h Add Equifax root cert after Apple removed it. 2015-07-07 19:15:23 +01:00
scrobbler.h Fixed lastfm workflow with "now playing" and scrobbling feature 2020-01-07 22:29:23 +00:00
searchboxwidget.cpp Reformat all C++ 2020-09-22 14:56:06 +01:00
searchboxwidget.h Fix header guards in internet/ 2014-12-18 23:54:21 +01:00
searchboxwidget.ui Move files around and make subdirectories inside src/internet, move src/podcasts to src/internet 2014-12-18 00:39:20 +01:00