Fix initialization error
This commit is contained in:
parent
ad8039027a
commit
c5f683b094
|
@ -1403,7 +1403,6 @@ static void init_resources()
|
||||||
void Application::initApplication(void)
|
void Application::initApplication(void)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
Base::Interpreter().replaceStdOutput();
|
|
||||||
initTypes();
|
initTypes();
|
||||||
new Base::ScriptProducer( "FreeCADGuiInit", FreeCADGuiInit );
|
new Base::ScriptProducer( "FreeCADGuiInit", FreeCADGuiInit );
|
||||||
init_resources();
|
init_resources();
|
||||||
|
|
|
@ -225,6 +225,7 @@ int main( int argc, char ** argv )
|
||||||
// Inits the Application
|
// Inits the Application
|
||||||
App::Application::init(argc,argv);
|
App::Application::init(argc,argv);
|
||||||
Gui::Application::initApplication();
|
Gui::Application::initApplication();
|
||||||
|
Base::Interpreter().replaceStdOutput();
|
||||||
}
|
}
|
||||||
catch (const Base::UnknownProgramOption& e) {
|
catch (const Base::UnknownProgramOption& e) {
|
||||||
QApplication app(argc,argv);
|
QApplication app(argc,argv);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user