Clean up some messy code issues that have been annoying me.

This commit is contained in:
Glenn Rice
2012-12-28 09:58:06 -06:00
parent af2820ac88
commit c303669dd0
6 changed files with 26 additions and 29 deletions

View File

@ -365,8 +365,6 @@ CFrame::CFrame(wxFrame* parent,
// ---------------
// Manager
// wxAUI_MGR_LIVE_RESIZE does not exist in the wxWidgets 2.8.9 that comes with Ubuntu 9.04
// Could just check for wxWidgets version if it becomes a problem.
m_Mgr = new wxAuiManager(this, wxAUI_MGR_DEFAULT | wxAUI_MGR_LIVE_RESIZE);
m_Mgr->AddPane(m_Panel, wxAuiPaneInfo()

View File

@ -1090,15 +1090,14 @@ void CFrame::DoStop()
Core::EState state = Core::GetState();
confirmStop = true;
Core::SetState(Core::CORE_PAUSE);
wxMessageDialog *m_StopDlg = new wxMessageDialog(
wxMessageDialog m_StopDlg(
this,
_("Do you want to stop the current emulation?"),
_("Please confirm..."),
wxYES_NO | wxSTAY_ON_TOP | wxICON_EXCLAMATION,
wxDefaultPosition);
int Ret = m_StopDlg->ShowModal();
m_StopDlg->Destroy();
int Ret = m_StopDlg.ShowModal();
confirmStop = false;
if (Ret != wxID_YES)
{