From 6f41baba87ba0b8b5405593eee27b1dfc40718a5 Mon Sep 17 00:00:00 2001 From: Mataes Date: Sun, 12 Apr 2020 21:15:49 +0300 Subject: NewStory: fix focus when search button click --- plugins/NewStory/src/history.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins') 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) -- cgit v1.2.3