summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2020-04-12 21:15:49 +0300
committerMataes <mataes2007@gmail.com>2020-04-12 21:16:21 +0300
commit6f41baba87ba0b8b5405593eee27b1dfc40718a5 (patch)
treec6df4b958678c323d7d81a21bb3e92e37f9f5fe2 /plugins/NewStory/src/history.cpp
parentf58ff97f5503e62a7418c6eaa8ce824d5e61342e (diff)
NewStory: fix focus when search button click
Diffstat (limited to 'plugins/NewStory/src/history.cpp')
-rw-r--r--plugins/NewStory/src/history.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp
index f56797b16a..60792b9713 100644
--- a/plugins/NewStory/src/history.cpp
+++ b/plugins/NewStory/src/history.cpp
@@ -268,6 +268,8 @@ class CHistoryDlg : public CDlgBase
ShowWindow(btnFindNext.GetHwnd(), cmd);
ShowWindow(btnFindPrev.GetHwnd(), cmd);
ShowWindow(edtSearchText.GetHwnd(), cmd);
+ if (cmd)
+ SetFocus(edtSearchText.GetHwnd());
}
void LayoutHistoryWnd()
@@ -593,6 +595,11 @@ public:
Utils_SaveWindowPosition(m_hwnd, m_hContact, MODULENAME, "wnd_");
Window_FreeIcon_IcoLib(m_hwnd);
WindowList_Remove(hNewstoryWindows, m_hwnd);
+ if (m_hwndStatus != nullptr) {
+ DestroyWindow(m_hwndStatus);
+ m_hwndStatus = nullptr;
+ }
+
}
void onClick_Calendar(CCtrlButton *pButton)