Updated CHANGELOG and fixed a couple compiler warnings.

This commit is contained in:
casey langen 2017-03-25 23:06:42 -07:00
parent a3d2d54fc4
commit 45f6795ccf
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ user-facing:
bring up a context menu with the ability to jump to the album or enqueue the
album's tracks for playback. this also had a nice side effect of making
scrolling more fluid!
* added jumping to album/artist/genre to the selected track context menu
* fixed a really old bug that could cause lists to automatically scroll to weird
places if the window or view is resized
* added localization support for "dimensions". this allows for per-locale sizing

View File

@ -297,7 +297,7 @@ void PlayQueueOverlays::ShowAddTrackOverlay(
[track, &messageQueue, &playback]
(ListOverlay* overlay, IScrollAdapterPtr adapter, size_t index) {
auto editor = playback.Edit();
if (index >= 0 && index <= 2) {
if (index <= 2) {
handleJumpTo(index, messageQueue, track);
}
else if (index == 3) { /* end */
@ -375,7 +375,7 @@ void PlayQueueOverlays::ShowAlbumDividerOverlay(
}
/* items 0, 1, and 2 jump to category */
if (index >= 0 && index <= 2) {
if (index <= 2) {
handleJumpTo(index, messageQueue, firstTrack);
}
/* the other are our standard play queue operations */