]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
added GetBorder(flags)
[wxWidgets.git] / src / common / appbase.cpp
index f3a5e7460b01f95b87dd74784b34eb739581f4c9..c2528ec5c9e227db222927d9abc362520c9c15ef 100644 (file)
@@ -127,7 +127,7 @@ bool wxAppConsole::Initialize(int& argc, wxChar **argv)
     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
@@ -208,7 +208,7 @@ void wxAppConsole::Exit()
 
 wxAppTraits *wxAppConsole::CreateTraits()
 {
-    return wxAppTraits::CreateConsole();
+    return new wxConsoleAppTraits;
 }
 
 wxAppTraits *wxAppConsole::GetTraits()
@@ -546,11 +546,6 @@ bool wxAppTraitsBase::ShowAssertDialog(const wxString& msg)
 
 #endif // __WXDEBUG__
 
-wxAppTraits *wxAppTraitsBase::CreateConsole()
-{
-    return new wxConsoleAppTraits;
-}
-
 // ============================================================================
 // global functions implementation
 // ============================================================================