aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-15 13:52:53 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-15 13:52:53 +0200
commit81c2facbe1dc3212de95eafc62bfabdd24de696b (patch)
tree52a3896313c23d6cb79ca650ad8378283037b6f6
parent9dfef8c22987c12a6aad47a8913e60943d8578e7 (diff)
Reset failed fetch status after search
-rw-r--r--src/QuickMedia.cpp2
1 files changed, 2 insertions, 0 deletions
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())