Remove programmer-oriented message that clobbers project path.

Fixes https://gitlab.com/kicad/code/kicad/issues/10749
This commit is contained in:
Jeff Young 2022-05-21 22:55:49 +01:00
parent 8e94c307d2
commit fe17dca71f
1 changed files with 1 additions and 22 deletions

View File

@ -731,31 +731,13 @@ int KICAD_MANAGER_CONTROL::ShowPlayer( const TOOL_EVENT& aEvent )
class TERMINATE_HANDLER : public wxProcess
{
public:
TERMINATE_HANDLER( const wxString& appName ) :
m_appName( appName )
TERMINATE_HANDLER( const wxString& appName )
{ }
void OnTerminate( int pid, int status ) override
{
wxString msg = wxString::Format( _( "%s closed [pid=%d]\n" ), m_appName, pid );
wxWindow* window = wxWindow::FindWindowByName( KICAD_MANAGER_FRAME_NAME );
if( window ) // Should always happen.
{
// Be sure the kicad frame manager is found
// This dynamic cast is not really mandatory, but ...
KICAD_MANAGER_FRAME* frame = dynamic_cast<KICAD_MANAGER_FRAME*>( window );
if( frame )
frame->PrintMsg( msg );
}
delete this;
}
private:
wxString m_appName;
};
@ -795,9 +777,6 @@ int KICAD_MANAGER_CONTROL::Execute( const TOOL_EVENT& aEvent )
if( pid > 0 )
{
wxString msg = wxString::Format( _( "%s %s opened [pid=%ld]\n" ), execFile, param, pid );
m_frame->PrintMsg( msg );
#ifdef __WXMAC__
// This non-parameterized use of wxExecute is fine because execFile is not derived
// from user input.