summaryrefslogtreecommitdiff
path: root/plugins/NewStory
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory')
-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)