diff options
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index f5beb785..16677f9e 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -286,7 +286,8 @@ static void updateItemsWithFlags_SidebarWidget_(iSidebarWidget *d, iBool keepAct | |||
286 | iZap(on); | 286 | iZap(on); |
287 | size_t numItems = 0; | 287 | size_t numItems = 0; |
288 | isEmpty = iTrue; | 288 | isEmpty = iTrue; |
289 | iConstForEach(PtrArray, i, listEntries_Feeds()) { | 289 | const iPtrArray *feedEntries = listEntries_Feeds(); |
290 | iConstForEach(PtrArray, i, feedEntries) { | ||
290 | const iFeedEntry *entry = i.ptr; | 291 | const iFeedEntry *entry = i.ptr; |
291 | if (isHidden_FeedEntry(entry)) { | 292 | if (isHidden_FeedEntry(entry)) { |
292 | continue; /* A hidden entry. */ | 293 | continue; /* A hidden entry. */ |
@@ -350,7 +351,7 @@ static void updateItemsWithFlags_SidebarWidget_(iSidebarWidget *d, iBool keepAct | |||
350 | } | 351 | } |
351 | /* Actions. */ | 352 | /* Actions. */ |
352 | if (!isMobile) { | 353 | if (!isMobile) { |
353 | if (!keepActions && !isEmpty) { | 354 | if (!keepActions && !isEmpty_PtrArray(feedEntries)) { |
354 | addActionButton_SidebarWidget_(d, | 355 | addActionButton_SidebarWidget_(d, |
355 | check_Icon | 356 | check_Icon |
356 | " ${sidebar.action.feeds.markallread}", | 357 | " ${sidebar.action.feeds.markallread}", |