adium-1.4 2617:3d815231bb66: Patch from wildwobby which confirms...
commits at adium.im
commits at adium.im
Fri Oct 16 15:01:14 UTC 2009
details: http://hg.adium.im/adium-1.4/rev/3d815231bb66
revision: 2617:3d815231bb66
author: Zachary West <zacw at adium.im>
date: Fri Oct 16 11:01:08 2009 -0400
Patch from wildwobby which confirms before removing logs when hitting the delete key. Fixes #13097.
diffs (17 lines):
diff -r 10ccc3f3e515 -r 3d815231bb66 Source/AILogViewerWindowController.m
--- a/Source/AILogViewerWindowController.m Fri Oct 16 10:56:33 2009 -0400
+++ b/Source/AILogViewerWindowController.m Fri Oct 16 11:01:08 2009 -0400
@@ -1812,7 +1812,12 @@
- (void)tableViewDeleteSelectedRows:(NSTableView *)tableView
{
- [self deleteSelection:nil];
+ [resultsLock lock];
+ NSArray *selectedLogs = [tableView_results selectedItemsFromArray:currentSearchResults];
+ [resultsLock unlock];
+
+ NSAlert *alert = [self alertForDeletionOfLogCount:[selectedLogs count]];
+ [alert beginSheetModalForWindow:[self window] modalDelegate:self didEndSelector:@selector(deleteLogsAlertDidEnd:returnCode:contextInfo:) contextInfo:[selectedLogs retain]];
}
- (void)tableViewColumnDidResize:(NSNotification *)aNotification
More information about the commits
mailing list