Uncaught exception when dragging multiple items between groups (macOS)
Change group after all the torrents are retrieved from drop data to avoid premature view item index changes. Fixes: #51
This commit is contained in:
parent
709ca6a4b2
commit
0994e96f31
|
@ -3163,10 +3163,15 @@ static void removeKeRangerRansomware()
|
|||
{
|
||||
Torrent * torrent = [fTableView itemAtRow: i];
|
||||
[movingTorrents addObject: torrent];
|
||||
}
|
||||
|
||||
//change groups
|
||||
if (item)
|
||||
[torrent setGroupValue: [item groupIndex] determinationType: TorrentDeterminationUserSpecified];
|
||||
//change groups
|
||||
if (item)
|
||||
{
|
||||
const NSInteger groupIndex = [item groupIndex];
|
||||
|
||||
for (Torrent * torrent in movingTorrents)
|
||||
[torrent setGroupValue: groupIndex determinationType: TorrentDeterminationUserSpecified];
|
||||
}
|
||||
|
||||
//reorder queue order
|
||||
|
|
Loading…
Reference in New Issue