From 81c2facbe1dc3212de95eafc62bfabdd24de696b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 15 May 2021 13:52:53 +0200 Subject: Reset failed fetch status after search --- src/QuickMedia.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 903c966..899ff71 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1667,6 +1667,7 @@ namespace QuickMedia { if(tab_associated_data[selected_tab].fetch_status == FetchStatus::NONE && !tab_associated_data[selected_tab].fetching_next_page_running && !tab_associated_data[selected_tab].fetching_next_page_failed + && !tabs[selected_tab].body->items.empty() && tabs[selected_tab].page && (!tabs[selected_tab].page->is_lazy_fetch_page() || tab_associated_data[selected_tab].lazy_fetch_finished)) { @@ -1873,6 +1874,7 @@ namespace QuickMedia { tabs[i].body->items = std::move(fetch_result.body_items); tabs[i].body->select_first_item(); associated_data.fetched_page = 0; + associated_data.fetching_next_page_failed = false; if(fetch_result.result != PluginResult::OK) associated_data.search_result_text.setString("Search failed!"); else if(tabs[i].body->items.empty()) -- cgit v1.2.3