diff --git a/clientgui/sg_DlgMessages.cpp b/clientgui/sg_DlgMessages.cpp index 039eddf1a8..5c3f15cc65 100644 --- a/clientgui/sg_DlgMessages.cpp +++ b/clientgui/sg_DlgMessages.cpp @@ -449,7 +449,7 @@ void CDlgMessages::OnShow(wxShowEvent& event) { bAlreadyRunning = true; wxLogTrace(wxT("Function Status"), wxT("CDlgMessages::OnShow - Show/Hide Event for CAdvancedFrame detected")); - if (event.GetShow()) { + if (event.IsShown()) { RestoreWindowDimensions(); } else { SaveWindowDimensions();