From 607c43e3961b3d98d628e0d341de79bf82b78d37 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Mon, 18 Feb 2019 17:45:40 -0500 Subject: [PATCH] Failed to take into account the possibility that no song is playing --- Persephone/Controllers/QueueViewController.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Persephone/Controllers/QueueViewController.swift b/Persephone/Controllers/QueueViewController.swift index 283a1a3..4cb3b1c 100644 --- a/Persephone/Controllers/QueueViewController.swift +++ b/Persephone/Controllers/QueueViewController.swift @@ -127,8 +127,9 @@ class QueueViewController: NSViewController, NSOutlineViewDataSource, NSOutlineV if oldSongRowPos >= 0 { queue[oldSongRowPos].isPlaying = false } - - queue[newSongRowPos].isPlaying = true + if newSongRowPos >= 0 { + queue[newSongRowPos].isPlaying = true + } } func outlineView(_ outlineView: NSOutlineView, numberOfChildrenOfItem item: Any?) -> Int {