aboutsummaryrefslogtreecommitdiff
path: root/c/episodelistview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-26 20:31:33 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-26 20:31:33 +0200
commit64493e774a02acd2c4b701e1e39f7f14a0b3920e (patch)
tree9e2b177e79a8842c4206fabadc4cb134f274007d /c/episodelistview.cpp
parentb966497200b47ca5efb3a5853891ea4590927371 (diff)
downloadEpisodeBrowser-64493e774a02acd2c4b701e1e39f7f14a0b3920e.tar.gz
Rewrite WM_MENUSELECT handling.
Diffstat (limited to 'c/episodelistview.cpp')
-rw-r--r--c/episodelistview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp
index 5aa8850..3b16a06 100644
--- a/c/episodelistview.cpp
+++ b/c/episodelistview.cpp
@@ -436,8 +436,8 @@ void EpisodeListView::UpdateItem(const LVITEM* const pLvi)
}
ListView_SetItemText(hWnd, pLvi->iItem, ELVSITITLE, wsName.data());
- int iRating;
-r: if (!Pl("episode_data","episode_rating",pLvi->lParam,&iRating)) {
+r: int iRating;
+ if (!Pl("episode_data","episode_rating",pLvi->lParam,&iRating)) {
ListView_SetItemText(hWnd, pLvi->iItem, ELVSIRATING, (wchar_t*)L"");
return;
}
@@ -456,7 +456,7 @@ LRESULT CALLBACK EpisodeListView::WndProc(const HWND hWnd, const UINT uMsg,
/* For the episode list view, the Enter key should not
* be handled by the dialog manager, but instead be sent
* along to the main window procedure, so that it may be
- * handled by the NM_RETURN case in ElvHandleNotify. */
+ * handled by the NM_RETURN case in HandleNotify. */
const LRESULT lResult = CallWindowProc(m_prevProc, hWnd, uMsg, wParam, lParam);
if (lParam && ((MSG*)lParam)->message == WM_KEYDOWN