summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueTableViewController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-08-22 07:55:24 +0200
committerDamiano Galassi <[email protected]>2019-08-22 07:55:24 +0200
commita2f9f24c3784422677fae15e693b255b65e3fd68 (patch)
tree4b06194f4ead68789a5487f34cdc57f1e524217e /macosx/HBQueueTableViewController.m
parent16ff432a7118f3b2d4a13b24e7d61ad6cf068abd (diff)
MacGui: fix a warnings and the tests.
Diffstat (limited to 'macosx/HBQueueTableViewController.m')
-rw-r--r--macosx/HBQueueTableViewController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBQueueTableViewController.m b/macosx/HBQueueTableViewController.m
index 034e03487..530c49f9a 100644
--- a/macosx/HBQueueTableViewController.m
+++ b/macosx/HBQueueTableViewController.m
@@ -107,7 +107,7 @@
*/
- (IBAction)removeSelectedQueueItem:(id)sender
{
- NSMutableIndexSet *targetedRows = [[self.tableView targetedRowIndexes] mutableCopy];
+ NSIndexSet *targetedRows = self.tableView.targetedRowIndexes;
[self.delegate tableViewRemoveItemsAtIndexes:targetedRows];
}
@@ -116,7 +116,7 @@
*/
- (IBAction)revealSelectedQueueItems:(id)sender
{
- NSIndexSet *targetedRows = [self.tableView targetedRowIndexes];
+ NSIndexSet *targetedRows = self.tableView.targetedRowIndexes;
NSMutableArray<NSURL *> *urls = [[NSMutableArray alloc] init];
NSUInteger currentIndex = [targetedRows firstIndex];