Revision: 24065
http://sourceforge.net/p/bibdesk/svn/24065
Author: hofman
Date: 2019-07-20 21:42:11 +0000 (Sat, 20 Jul 2019)
Log Message:
-----------
use clicked or selected pubs for duplicate, as that is what the tableview uses
Modified Paths:
--------------
trunk/bibdesk/BibDocument_DataSource.m
Modified: trunk/bibdesk/BibDocument_DataSource.m
===================================================================
--- trunk/bibdesk/BibDocument_DataSource.m 2019-07-20 21:14:40 UTC (rev
24064)
+++ trunk/bibdesk/BibDocument_DataSource.m 2019-07-20 21:42:11 UTC (rev
24065)
@@ -921,9 +921,9 @@
// Don't use the default copy+paste here, as it uses another pasteboard and
some more overhead
- (void)tableView:(NSTableView *)tv duplicateRowsWithIndexes:(NSIndexSet
*)rowIndexes {
- // the rows are always the selected rows
+ // the rows are always the clicked or selected rows
if (tv == tableView) {
- NSArray *newPubs = [[NSArray alloc] initWithArray:[self
selectedPublications] copyItems:YES];
+ NSArray *newPubs = [[NSArray alloc] initWithArray:[self
clickedOrSelectedPublications] copyItems:YES];
[self addPublications:newPubs]; // notification will take care of
clearing the search/sorting
[self selectPublications:newPubs];
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