mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
Modal windows must be closed with EndModal(), not just Destroy()'ed.
wxFD_FILE_MUST_EXIST cannot be used with wxFD_SAVE. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6003 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
2d108f8d57
commit
1fb47e6393
@ -105,7 +105,7 @@ void AboutDolphin::CreateGUIControls()
|
||||
|
||||
void AboutDolphin::OnClose(wxCloseEvent& WXUNUSED (event))
|
||||
{
|
||||
Destroy();
|
||||
EndModal(wxID_OK);
|
||||
}
|
||||
|
||||
void AboutDolphin::CloseClick(wxCommandEvent& WXUNUSED (event))
|
||||
|
@ -145,6 +145,7 @@ void CFrame::CreateMenu()
|
||||
|
||||
emulationMenu->AppendSeparator();
|
||||
emulationMenu->Append(IDM_SCREENSHOT, _T("Take S&creenshot\tF9"));
|
||||
|
||||
emulationMenu->AppendSeparator();
|
||||
wxMenu *saveMenu = new wxMenu;
|
||||
wxMenu *loadMenu = new wxMenu;
|
||||
@ -626,7 +627,7 @@ void CFrame::OnRecord(wxCommandEvent& WXUNUSED (event))
|
||||
wxFileSelectorDefaultWildcardStr,
|
||||
wxFileSelectorDefaultWildcardStr
|
||||
),
|
||||
wxFD_SAVE | wxFD_PREVIEW | wxFD_FILE_MUST_EXIST,
|
||||
wxFD_SAVE | wxFD_PREVIEW,
|
||||
this);
|
||||
|
||||
if(path.IsEmpty())
|
||||
|
Loading…
x
Reference in New Issue
Block a user