From 86d24b26a81c0d91041273bb9160f567e5da340d Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 12 Mar 2017 12:39:12 +0100 Subject: [PATCH] Ignore fetch delay while locating song in media library --- src/screens/media_library.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/screens/media_library.cpp b/src/screens/media_library.cpp index 5510c7cb..2dac3dc2 100644 --- a/src/screens/media_library.cpp +++ b/src/screens/media_library.cpp @@ -962,7 +962,10 @@ void MediaLibrary::locateSong(const MPD::Song &s) { Tags.clearFilter(); if (Tags.empty()) + { + requestTagsUpdate(); update(); + } if (!MoveToTag(Tags, primary_tag)) { @@ -981,7 +984,10 @@ void MediaLibrary::locateSong(const MPD::Song &s) Albums.clearFilter(); if (Albums.empty()) + { + requestAlbumsUpdate(); update(); + } // When you locate a song in the media library, if no albums or no songs // are found, set the active column to the previous one (tags if no albums, @@ -1018,7 +1024,7 @@ void MediaLibrary::locateSong(const MPD::Song &s) } Songs.clearFilter(); - Songs.clear(); + requestSongsUpdate(); update(); if (!Songs.empty())