aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())