return false from OnInit() in console build if we failed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -448,13 +448,13 @@ bool MyApp::OnInit()
|
|||||||
if (!path.empty())
|
if (!path.empty())
|
||||||
ReadCustomMacros(path);
|
ReadCustomMacros(path);
|
||||||
|
|
||||||
Go();
|
bool rc = Go();
|
||||||
if (runTwice)
|
if ( rc && runTwice )
|
||||||
{
|
{
|
||||||
Go();
|
rc = Go();
|
||||||
}
|
}
|
||||||
#ifdef NO_GUI
|
#ifdef NO_GUI
|
||||||
return true;
|
return rc;
|
||||||
#else
|
#else
|
||||||
OnExit(); // Do cleanup since OnExit won't be called now
|
OnExit(); // Do cleanup since OnExit won't be called now
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user