Use correct error message box.
(Also updates the string to avoid the never-ending Mac double-quote problem.)
This commit is contained in:
parent
1fcd7992a0
commit
0d72e253f0
|
@ -35,11 +35,11 @@
|
||||||
#include <menus_helpers.h>
|
#include <menus_helpers.h>
|
||||||
#include <panel_hotkeys_editor.h>
|
#include <panel_hotkeys_editor.h>
|
||||||
#include <paths.h>
|
#include <paths.h>
|
||||||
|
#include <confirm.h>
|
||||||
#include <pgm_base.h>
|
#include <pgm_base.h>
|
||||||
#include <settings/app_settings.h>
|
#include <settings/app_settings.h>
|
||||||
#include <settings/common_settings.h>
|
#include <settings/common_settings.h>
|
||||||
#include <settings/settings_manager.h>
|
#include <settings/settings_manager.h>
|
||||||
#include <pgm_base.h>
|
|
||||||
#include <project/project_local_settings.h>
|
#include <project/project_local_settings.h>
|
||||||
#include <tool/action_manager.h>
|
#include <tool/action_manager.h>
|
||||||
#include <tool/action_menu.h>
|
#include <tool/action_menu.h>
|
||||||
|
@ -55,7 +55,6 @@
|
||||||
#include <wx/app.h>
|
#include <wx/app.h>
|
||||||
#include <wx/config.h>
|
#include <wx/config.h>
|
||||||
#include <wx/display.h>
|
#include <wx/display.h>
|
||||||
#include <wx/msgdlg.h>
|
|
||||||
#include <wx/stdpaths.h>
|
#include <wx/stdpaths.h>
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/treebook.h>
|
#include <wx/treebook.h>
|
||||||
|
@ -926,12 +925,12 @@ wxString EDA_BASE_FRAME::GetFileFromHistory( int cmdId, const wxString& type,
|
||||||
wxString fn = aFileHistory->GetHistoryFile( i );
|
wxString fn = aFileHistory->GetHistoryFile( i );
|
||||||
|
|
||||||
if( wxFileName::FileExists( fn ) )
|
if( wxFileName::FileExists( fn ) )
|
||||||
|
{
|
||||||
return fn;
|
return fn;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxString msg = wxString::Format( _( "File \"%s\" was not found." ), fn );
|
DisplayErrorMessage( this, wxString::Format( _( "File '%s' was not found." ), fn ) );
|
||||||
wxMessageBox( msg );
|
|
||||||
|
|
||||||
aFileHistory->RemoveFileFromHistory( i );
|
aFileHistory->RemoveFileFromHistory( i );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue