aboutsummaryrefslogtreecommitdiff
path: root/c/episodelistview.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-04-18 00:09:07 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-04-18 00:09:07 +0200
commit2d83bf905a8da36a03d02ec83847741d553a7289 (patch)
treeafe75488e5e1a1e44839b16f921dc88b235529e0 /c/episodelistview.c
parent3bd10da4520ad24d38d4f3eb875b9d9676510bfe (diff)
downloadEpisodeBrowser-2d83bf905a8da36a03d02ec83847741d553a7289.tar.gz
Fix episode update in ElvSelectRecent.
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r--c/episodelistview.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c
index 464313f..1afee3e 100644
--- a/c/episodelistview.c
+++ b/c/episodelistview.c
@@ -167,9 +167,8 @@ ElvSelectRecent()
i = 0;
lvfi.flags = LVFI_PARAM;
lvfi.lParam = iEpisode;
- do
- lvfi.lParam = iEpisode+i;
- while ((iItem = ListView_FindItem(HElv, -1, &lvfi)) == -1 && i++ < 100);
+ while ((iItem = ListView_FindItem(HElv, -1, &lvfi)) == -1 && i++ < 100)
+ lvfi.lParam = ++iEpisode;
if (iItem == -1) return;
s: ListView_SetItemState(HElv, -1, LVIF_STATE, LVIS_SELECTED);