UI: Refactor OBSInit call

This commit is contained in:
Palana 2015-07-11 08:02:41 +02:00
parent 7187c1b6d4
commit 2de89bee8c

View file

@ -877,7 +877,10 @@ static int run_program(fstream &logFile, int argc, char *argv[])
program.installTranslator(&translator);
ret = program.OBSInit() ? program.exec() : 0;
if (!program.OBSInit())
return 0;
return program.exec();
} catch (const char *error) {
blog(LOG_ERROR, "%s", error);