Disable built-in NaN handler through hidden setting (#4787)

* Disable built-in NaN handler through hidden setting

* Reuse code
This commit is contained in:
Javier Serrano Polo
2019-01-31 23:12:45 +01:00
committed by GitHub
parent 0a47b0c8cd
commit b28d405240
5 changed files with 60 additions and 0 deletions

View File

@@ -64,6 +64,7 @@
#include "GuiApplication.h"
#include "ImportFilter.h"
#include "MainWindow.h"
#include "MixHelpers.h"
#include "OutputSettings.h"
#include "ProjectRenderer.h"
#include "RenderManager.h"
@@ -633,6 +634,10 @@ int main( int argc, char * * argv )
ConfigManager::inst()->loadConfigFile(configFile);
// Hidden settings
MixHelpers::setNaNHandler( ConfigManager::inst()->value( "app",
"nanhandler", "1" ).toInt() );
// set language
QString pos = ConfigManager::inst()->value( "app", "language" );
if( pos.isEmpty() )