Revision: 27549
          http://sourceforge.net/p/bibdesk/svn/27549
Author:   hofman
Date:     2022-06-04 17:19:38 +0000 (Sat, 04 Jun 2022)
Log Message:
-----------
don't move when there is nothing to move

Modified Paths:
--------------
    trunk/bibdesk/BibItem.m

Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m     2022-06-04 17:11:38 UTC (rev 27548)
+++ trunk/bibdesk/BibItem.m     2022-06-04 17:19:38 UTC (rev 27549)
@@ -2760,6 +2760,9 @@
 
 - (void)moveFilesAtIndexes:(NSIndexSet *)fromSet toIndexes:(NSIndexSet *)toSet
 {
+    if ([toSet isEqualToIndexSet:fromSet])
+        return;
+    
     [[[self undoManager] prepareWithInvocationTarget:self] 
moveFilesAtIndexes:toSet toIndexes:fromSet];
     
     NSArray *toMove = [[files objectsAtIndexes:fromSet] copy];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to