don't overwrite the app name with argv[0] if it had been already set
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -474,7 +474,9 @@ void wxApp::ConvertToStandardCommandArgs(const char* lpCmdLine)
|
||||
wxString name;
|
||||
wxFileName::SplitPath(argv[0], NULL, &name, NULL);
|
||||
|
||||
SetAppName(name);
|
||||
// but don't override the name already set by the user code, if any
|
||||
if ( GetAppName().empty() )
|
||||
SetAppName(name);
|
||||
|
||||
// copy all the other arguments to wxApp::argv[]
|
||||
for ( int i = 1; i < argc; i++ )
|
||||
|
Reference in New Issue
Block a user