From 019fad8bdbda5599e5f19bc50cd8ebac6be899e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 30 Jul 2022 19:13:22 +0200 Subject: Simplify EpisodeListView::UpdateItem, remove m_lviFocus. --- c/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/main.cpp') 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: -- cgit v1.2.3