Skip to content

Commit

Permalink
fix crash double-clicking empty area
Browse files Browse the repository at this point in the history
  • Loading branch information
NattyNarwhal committed Jun 28, 2024
1 parent 47ff6e8 commit d6a5428
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Submariner/SBViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ - (NSInteger)selectedTrackRow {
#pragma mark Playing

- (IBAction)trackDoubleClick:(id)sender {
if (self.selectedTrackRow < 0) {
return;
}

[[SBPlayer sharedInstance] playTracks:[self.tracks sortedArrayUsingDescriptors: self.trackSortDescriptor] startingAt:self.selectedTrackRow];
}

Expand Down

0 comments on commit d6a5428

Please sign in to comment.