mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user