diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-14 12:23:35 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-14 12:23:35 +0200 |
commit | e912bd13b95b3bb93becccfe45cf22f574afce9e (patch) | |
tree | c0b91ee2748f097b3de312c0ac309188e1177cc1 | |
parent | 5a68ff650ff2457242bb9cbe3f21c781f6e6de0d (diff) |
Cleanup
-rw-r--r-- | src/feeds.c | 4 | ||||
-rw-r--r-- | src/ui/sidebarwidget.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/feeds.c b/src/feeds.c index 7fe13617..a8cbf47a 100644 --- a/src/feeds.c +++ b/src/feeds.c | |||
@@ -65,7 +65,9 @@ const iString *url_FeedEntry(const iFeedEntry *d) { | |||
65 | iBool isUnread_FeedEntry(const iFeedEntry *d) { | 65 | iBool isUnread_FeedEntry(const iFeedEntry *d) { |
66 | const size_t fragPos = indexOf_String(&d->url, '#'); | 66 | const size_t fragPos = indexOf_String(&d->url, '#'); |
67 | if (fragPos != iInvalidPos) { | 67 | if (fragPos != iInvalidPos) { |
68 | /* Check if the entry is newer than the latest visit. */ | 68 | /* Check if the entry is newer than the latest visit. If the URL has not been visited, |
69 | `urlVisitTime_Visited` returns a zero timestamp that is always earlier than | ||
70 | `posted`. */ | ||
69 | const iTime visTime = urlVisitTime_Visited(visited_App(), url_FeedEntry(d)); | 71 | const iTime visTime = urlVisitTime_Visited(visited_App(), url_FeedEntry(d)); |
70 | return cmp_Time(&visTime, &d->posted) < 0; | 72 | return cmp_Time(&visTime, &d->posted) < 0; |
71 | } | 73 | } |
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 30e35b7c..ca45f013 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -266,7 +266,7 @@ static void updateItemsWithFlags_SidebarWidget_(iSidebarWidget *d, iBool keepAct | |||
266 | clear_ListWidget(d->list); | 266 | clear_ListWidget(d->list); |
267 | releaseChildren_Widget(d->blank); | 267 | releaseChildren_Widget(d->blank); |
268 | if (!keepActions) { | 268 | if (!keepActions) { |
269 | releaseChildren_Widget(d->actions); | 269 | releaseChildren_Widget(d->actions); |
270 | } | 270 | } |
271 | d->actions->rect.size.y = 0; | 271 | d->actions->rect.size.y = 0; |
272 | destroy_Widget(d->menu); | 272 | destroy_Widget(d->menu); |