this->argc = argc;
this->argv = argv;
- if ( m_appName.empty() )
+ if ( m_appName.empty() && argv )
{
// the application name is, by default, the name of its executable file
#if wxUSE_FILENAME
wxAppTraits *wxAppConsole::CreateTraits()
{
- return wxAppTraits::CreateConsole();
+ return new wxConsoleAppTraits;
}
wxAppTraits *wxAppConsole::GetTraits()
#endif // __WXDEBUG__
-wxAppTraits *wxAppTraitsBase::CreateConsole()
-{
- return new wxConsoleAppTraits;
-}
-
// ============================================================================
// global functions implementation
// ============================================================================