git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17057
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxString name;
wxFileName::SplitPath(argv[0], NULL, &name, NULL);
wxString name;
wxFileName::SplitPath(argv[0], NULL, &name, NULL);
+ // 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++ )
// copy all the other arguments to wxApp::argv[]
for ( int i = 1; i < argc; i++ )