Revision: 15170
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15170&view=rev
Author: hofman
Date: 2009-04-24 10:01:17 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
get groups to delete from the selected groups rather than the selected indexes,
because we don't use a flat list anymore
Modified Paths:
--------------
trunk/bibdesk/BibDocument_Groups.m
Modified: trunk/bibdesk/BibDocument_Groups.m
===================================================================
--- trunk/bibdesk/BibDocument_Groups.m 2009-04-24 09:37:09 UTC (rev 15169)
+++ trunk/bibdesk/BibDocument_Groups.m 2009-04-24 10:01:17 UTC (rev 15170)
@@ -1126,13 +1126,11 @@
}
- (IBAction)removeSelectedGroups:(id)sender {
- NSIndexSet *rowIndexes = [groupOutlineView selectedRowIndexes];
- NSUInteger rowIndex = [rowIndexes lastIndex];
+ NSEnumerator *groupEnum = [[self selectedGroups] objectEnumerator];
BDSKGroup *group;
BOOL didRemove = NO;
- while (rowIndexes != nil && rowIndex != NSNotFound) {
- group = [groups objectAtIndex:rowIndex];
+ while (group == [groupEnum nextObject]) {
if ([group isSmart]) {
[groups removeSmartGroup:(BDSKSmartGroup *)group];
didRemove = YES;
@@ -1148,7 +1146,6 @@
} else if ([group isSearch]) {
[groups removeSearchGroup:(BDSKSearchGroup *)group];
}
- rowIndex = [rowIndexes indexLessThanIndex:rowIndex];
}
if (didRemove) {
[[self undoManager] setActionName:NSLocalizedString(@"Remove
Groups", @"Undo action name")];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit