Fix (temporary fix) a bug I created in dialog_freeroute_exchange.cpp in bzr rev 4769
This commit is contained in:
parent
34c593916c
commit
0449258761
|
@ -139,6 +139,7 @@ void DIALOG_FREEROUTE::OnImportButtonClick( wxCommandEvent& event )
|
||||||
void DIALOG_FREEROUTE::OnLaunchButtonClick( wxCommandEvent& event )
|
void DIALOG_FREEROUTE::OnLaunchButtonClick( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
wxString javaCommand;
|
wxString javaCommand;
|
||||||
|
wxString command;
|
||||||
|
|
||||||
if( m_freeRouterIsLocal )
|
if( m_freeRouterIsLocal )
|
||||||
{
|
{
|
||||||
|
@ -198,13 +199,12 @@ void DIALOG_FREEROUTE::OnLaunchButtonClick( wxCommandEvent& event )
|
||||||
|
|
||||||
key.QueryValue( m_freeRouterIsLocal ? wxT( "JavaHome" ) : wxT( "Home" ), value );
|
key.QueryValue( m_freeRouterIsLocal ? wxT( "JavaHome" ) : wxT( "Home" ), value );
|
||||||
wxString javaCommandPath = value + wxFileName::GetPathSeparator();
|
wxString javaCommandPath = value + wxFileName::GetPathSeparator();
|
||||||
|
command = javaCommandPath;
|
||||||
#else
|
#else
|
||||||
#warning Kicad needs wxWidgets >= 2.9.4. version 2.8 is only supported for testing purposes
|
#warning Kicad needs wxWidgets >= 2.9.4. version 2.8 is only supported for testing purposes
|
||||||
#endif // wxCHECK_VERSION( 2, 9, 0 )
|
#endif // wxCHECK_VERSION( 2, 9, 0 )
|
||||||
#endif // __WINDOWS__
|
#endif // __WINDOWS__
|
||||||
|
|
||||||
wxString command = javaCommandPath;
|
|
||||||
|
|
||||||
if( m_freeRouterIsLocal )
|
if( m_freeRouterIsLocal )
|
||||||
command << wxT("bin\\") << javaCommand;
|
command << wxT("bin\\") << javaCommand;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue