diff options
author | Mataes <mataes2007@gmail.com> | 2020-05-04 19:09:29 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2020-05-04 19:09:29 +0300 |
commit | 7c0d4f4d63669f84d0796776a47d12d75891c40e (patch) | |
tree | e99b42e171f8c6d0938a774495e3a6acc8a68147 /plugins | |
parent | 41bee45161943642460bbecfccf60749be37bd26 (diff) |
newstory: menu fix
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index 3d7046c0a7..ce1675c549 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -443,7 +443,7 @@ public: m_hMenu = LoadMenu(g_plugin.getInst(), MAKEINTRESOURCE(IDR_POPUPS)); TranslateMenu(m_hMenu); - HMENU hMenu = GetSubMenu(m_hMenu, 1); + HMENU hMenu = GetSubMenu(m_hMenu, 0); CheckMenuItem(hMenu, ID_FILTER_INCOMING, showFlags & HIST_SHOW_IN ? MF_CHECKED : MF_UNCHECKED); CheckMenuItem(hMenu, ID_FILTER_OUTGOING, @@ -799,7 +799,7 @@ public: RECT rc; GetWindowRect(pButton->GetHwnd(), &rc); - switch (TrackPopupMenu(GetSubMenu(m_hMenu, 2), TPM_RETURNCMD, rc.left, rc.bottom, 0, m_hwnd, NULL)) { + switch (TrackPopupMenu(GetSubMenu(m_hMenu, 1), TPM_RETURNCMD, rc.left, rc.bottom, 0, m_hwnd, NULL)) { case ID_LOGOPTIONS_OPTIONS: g_plugin.openOptions(L"History", L"NewStory", L"Advanced"); break; |