Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Commit

Permalink
尝试修复WINDOWS 10关机时出现内存错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chenall committed Mar 9, 2016
1 parent 5e81e08 commit 912f244
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Dialog/DlgAddNewCmd.cpp
Expand Up @@ -250,7 +250,7 @@ void DlgAddNewCmd::OnCmdUpdate(wxCommandEvent& e)
void DlgAddNewCmd::OnShow(wxShowEvent& e)
{
e.Skip();
if (!e.GetShow())
if (!e.IsShown())
return;
this->SetFocus();
if (cmdID == -1 || !g_config)
Expand Down
2 changes: 1 addition & 1 deletion src/MerryFrame.cpp
Expand Up @@ -176,7 +176,7 @@ void MerryFrame::ShowTrayIcon(const bool show)
void MerryFrame::OnClose()
{
__DEBUG_BEGIN("")
this->Hide();
// this->Hide();

wxDELETE(g_lua);
wxDELETE(g_commands);
Expand Down
2 changes: 1 addition & 1 deletion src/MerryMainPanel.cpp
Expand Up @@ -91,7 +91,7 @@ void MerryMainPanel::OnMouseEvent(wxMouseEvent& e)

void MerryMainPanel::OnPaintEvent(wxPaintEvent& e)
{
wxPaintDC dc = wxPaintDC(this);
wxPaintDC dc(this);
dc.Clear();

if (m_background.IsOk())
Expand Down

0 comments on commit 912f244

Please sign in to comment.