mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 00:40:16 +00:00
Fix issue 2364 + another issue introduced in r5129 causing the main window to lose the focus on windows
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5133 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f1ed7e5656
commit
6da7695843
@ -186,11 +186,13 @@ void DllConfig(HWND _hParent)
|
|||||||
m_ConfigFrame->ShowModal();
|
m_ConfigFrame->ShowModal();
|
||||||
frame->Enable();
|
frame->Enable();
|
||||||
|
|
||||||
m_ConfigFrame->Destroy();
|
|
||||||
m_ConfigFrame = NULL;
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
frame->SetFocus();
|
||||||
frame->SetHWND(NULL);
|
frame->SetHWND(NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
m_ConfigFrame->Destroy();
|
||||||
|
m_ConfigFrame = NULL;
|
||||||
frame->Destroy();
|
frame->Destroy();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -151,11 +151,13 @@ void DllConfig(HWND _hParent)
|
|||||||
m_ConfigFrame->ShowModal();
|
m_ConfigFrame->ShowModal();
|
||||||
frame->Enable();
|
frame->Enable();
|
||||||
|
|
||||||
m_ConfigFrame->Destroy();
|
|
||||||
m_ConfigFrame = NULL;
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
frame->SetFocus();
|
||||||
frame->SetHWND(NULL);
|
frame->SetHWND(NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
m_ConfigFrame->Destroy();
|
||||||
|
m_ConfigFrame = NULL;
|
||||||
frame->Destroy();
|
frame->Destroy();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -168,11 +168,13 @@ void DllConfig(HWND _hParent)
|
|||||||
m_ConfigFrame->ShowModal();
|
m_ConfigFrame->ShowModal();
|
||||||
frame->Enable();
|
frame->Enable();
|
||||||
|
|
||||||
m_ConfigFrame->Destroy();
|
|
||||||
m_ConfigFrame = NULL;
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
frame->SetFocus();
|
||||||
frame->SetHWND(NULL);
|
frame->SetHWND(NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
m_ConfigFrame->Destroy();
|
||||||
|
m_ConfigFrame = NULL;
|
||||||
frame->Destroy();
|
frame->Destroy();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,6 @@ END_EVENT_TABLE()
|
|||||||
GFXConfigDialogOGL::GFXConfigDialogOGL(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
|
GFXConfigDialogOGL::GFXConfigDialogOGL(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
|
||||||
: wxDialog(parent, id, title, position, size, style)
|
: wxDialog(parent, id, title, position, size, style)
|
||||||
{
|
{
|
||||||
CreateGUIControls();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -292,14 +292,17 @@ void DllConfig(HWND _hParent)
|
|||||||
|
|
||||||
// Prevent user to show more than 1 config window at same time
|
// Prevent user to show more than 1 config window at same time
|
||||||
frame->Disable();
|
frame->Disable();
|
||||||
|
m_ConfigFrame->CreateGUIControls();
|
||||||
m_ConfigFrame->ShowModal();
|
m_ConfigFrame->ShowModal();
|
||||||
frame->Enable();
|
frame->Enable();
|
||||||
|
|
||||||
m_ConfigFrame->Destroy();
|
|
||||||
m_ConfigFrame = NULL;
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
frame->SetFocus();
|
||||||
frame->SetHWND(NULL);
|
frame->SetHWND(NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
m_ConfigFrame->Destroy();
|
||||||
|
m_ConfigFrame = NULL;
|
||||||
frame->Destroy();
|
frame->Destroy();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -173,11 +173,13 @@ void DllConfig(HWND _hParent)
|
|||||||
m_BasicConfigFrame->ShowModal();
|
m_BasicConfigFrame->ShowModal();
|
||||||
frame->Enable();
|
frame->Enable();
|
||||||
|
|
||||||
m_BasicConfigFrame->Destroy();
|
|
||||||
m_BasicConfigFrame = NULL;
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
frame->SetFocus();
|
||||||
frame->SetHWND(NULL);
|
frame->SetHWND(NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
m_BasicConfigFrame->Destroy();
|
||||||
|
m_BasicConfigFrame = NULL;
|
||||||
frame->Destroy();
|
frame->Destroy();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user