mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
expand groups when changing group values
This commit is contained in:
parent
e83aa793c5
commit
19210bebf2
1 changed files with 7 additions and 1 deletions
|
@ -2155,10 +2155,16 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
|
||||
- (void) setGroup: (id) sender
|
||||
{
|
||||
NSIndexSet * collapsedGroupsIndexes = [fTableView collapsedGroupsIndexes];
|
||||
|
||||
NSEnumerator * enumerator = [[fTableView selectedTorrents] objectEnumerator];
|
||||
Torrent * torrent;
|
||||
while ((torrent = [enumerator nextObject]))
|
||||
{
|
||||
[fTableView removeCollapsedGroup: [torrent groupValue]]; //remove old collapsed group
|
||||
|
||||
[torrent setGroupValue: [sender tag]];
|
||||
}
|
||||
|
||||
[self applyFilter: nil];
|
||||
[self updateUI];
|
||||
|
@ -2514,7 +2520,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
NSPasteboard * pasteboard = [info draggingPasteboard];
|
||||
if ([[pasteboard types] containsObject: TORRENT_TABLE_VIEW_DATA_TYPE])
|
||||
{
|
||||
//remember selected rows if needed
|
||||
//remember selected rows
|
||||
NSArray * selectedValues = [fTableView selectedValues];
|
||||
|
||||
NSIndexSet * indexes = [NSKeyedUnarchiver unarchiveObjectWithData:
|
||||
|
|
Loading…
Reference in a new issue