X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c269cf62359dc17dd6382a6380063d8502243bc4..adb45366da2cb1ee72f548ab2fa149f071327682:/src/html/helpfrm.cpp diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index f64ea9e980..92f11379b1 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -878,10 +878,15 @@ void wxHtmlHelpFrame::WriteCustomization(wxConfigBase *cfg, const wxString& path cfg->Write(wxT("hcNavigPanel"), m_Cfg.navig_on); cfg->Write(wxT("hcSashPos"), (long)m_Cfg.sashpos); - cfg->Write(wxT("hcX"), (long)m_Cfg.x); - cfg->Write(wxT("hcY"), (long)m_Cfg.y); - cfg->Write(wxT("hcW"), (long)m_Cfg.w); - cfg->Write(wxT("hcH"), (long)m_Cfg.h); + if ( !IsIconized() ) + { + // Don't write if iconized as this would make the window + // disappear next time it is shown! + cfg->Write(wxT("hcX"), (long)m_Cfg.x); + cfg->Write(wxT("hcY"), (long)m_Cfg.y); + cfg->Write(wxT("hcW"), (long)m_Cfg.w); + cfg->Write(wxT("hcH"), (long)m_Cfg.h); + } cfg->Write(wxT("hcFixedFace"), m_FixedFace); cfg->Write(wxT("hcNormalFace"), m_NormalFace); cfg->Write(wxT("hcBaseFontSize"), (long)m_FontSize); @@ -1069,7 +1074,7 @@ void wxHtmlHelpFrame::OptionsDialog() if (!m_NormalFace.empty()) dlg.NormalFont->SetStringSelection(m_NormalFace); else - dlg.FixedFont->SetSelection(0); + dlg.NormalFont->SetSelection(0); if (!m_FixedFace.empty()) dlg.FixedFont->SetStringSelection(m_FixedFace); else @@ -1120,8 +1125,14 @@ void wxHtmlHelpFrame::OnActivate(wxActivateEvent& event) { // This saves one mouse click when using the // wxHTML for context sensitive help systems +#ifndef __WXGTK__ + // NB: wxActivateEvent is a bit broken in wxGTK + // and is sometimes sent when it should not be if (event.GetActive() && m_HtmlWin) m_HtmlWin->SetFocus(); +#endif + + event.Skip(); } void wxHtmlHelpFrame::OnToolbar(wxCommandEvent& event)