aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-30 19:13:22 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-30 19:13:22 +0200
commit019fad8bdbda5599e5f19bc50cd8ebac6be899e4 (patch)
tree855e06cfa5b6bd90c7261270350fa50dc6570bba /c/main.cpp
parent9003b747e6d330bac33c30018b4575e2ecfd95eb (diff)
downloadEpisodeBrowser-019fad8bdbda5599e5f19bc50cd8ebac6be899e4.tar.gz
Simplify EpisodeListView::UpdateItem, remove m_lviFocus.
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 984eb6b..144d151 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -420,7 +420,7 @@ void WndProcContextMenu(const HWND, unsigned short wCommand)
/* Process rate commands. */
if (ID_SUBGROUP(wCommand) == IDG_CTX_RATE) {
Pl("episode_data","rate_episode",lvi.lParam,ID_RATING(wCommand));
- g_pElv->UpdateItem(&lvi);
+ g_pElv->UpdateItem(lvi.iItem, lvi.lParam);
continue;
}
@@ -442,7 +442,7 @@ void WndProcContextMenu(const HWND, unsigned short wCommand)
break;
case IDM_LOOKUP:
Pl("episode_data","retract_episode",lvi.lParam);
- g_pElv->UpdateItem(&lvi);
+ g_pElv->UpdateItem(lvi.iItem, lvi.lParam);
g_pDlv->ShowEpisode(lvi.lParam);
break;
case IDM_WIKI: