if a group row is selected and the content changes, refresh the inspector

This commit is contained in:
Mitchell Livingston 2008-06-26 03:35:20 +00:00
parent 26261e3bde
commit 5288fceaf1
2 changed files with 10 additions and 2 deletions

View File

@ -178,6 +178,7 @@ typedef enum
- (void) showAboutWindow: (id) sender;
- (void) showInfo: (id) sender;
- (void) resetInfo;
- (void) setInfoTab: (id) sender;
- (void) showMessageWindow: (id) sender;

View File

@ -1447,6 +1447,12 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
}
}
- (void) resetInfo
{
[fInfoController setInfoForTorrents: [fTableView selectedTorrents]];
[[QuickLookController quickLook] updateQuickLook];
}
- (void) setInfoTab: (id) sender
{
if (sender == fNextInfoTabItem)
@ -2056,6 +2062,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
//actually sort
[self sortTorrentsIgnoreSelected];
[fTableView selectValues: selectedValues];
[self resetInfo]; //if group is already selected, but the torrents in it change
//reset expanded/collapsed rows
if (groupRows)
@ -2775,6 +2782,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
//set selected rows
[fTableView selectValues: selectedValues];
[self resetInfo]; //if group is already selected, but the torrents in it change
}
return YES;
@ -2782,8 +2790,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
- (void) torrentTableViewSelectionDidChange: (NSNotification *) notification
{
[fInfoController setInfoForTorrents: [fTableView selectedTorrents]];
[[QuickLookController quickLook] updateQuickLook];
[self resetInfo];
}
- (NSDragOperation) draggingEntered: (id <NSDraggingInfo>) info