diff options
author | John Ankarström <john@ankarstrom.se> | 2022-04-18 00:09:07 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-04-18 00:09:07 +0200 |
commit | 2d83bf905a8da36a03d02ec83847741d553a7289 (patch) | |
tree | afe75488e5e1a1e44839b16f921dc88b235529e0 /c/episodelistview.c | |
parent | 3bd10da4520ad24d38d4f3eb875b9d9676510bfe (diff) | |
download | EpisodeBrowser-2d83bf905a8da36a03d02ec83847741d553a7289.tar.gz |
Fix episode update in ElvSelectRecent.
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r-- | c/episodelistview.c | 5 |
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); |