1
0
Fork 0
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:
Mitchell Livingston 2008-02-07 15:57:32 +00:00
parent e83aa793c5
commit 19210bebf2

View file

@ -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: