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:
Vadim Zeitlin
2002-09-07 20:26:07 +00:00
parent 311da78ab0
commit b35191eb54

View File

@@ -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++ )