Fixed startup in launcher

This commit is contained in:
Klaus Basan
2017-01-05 04:19:28 +01:00
committed by Mathew Sutcliffe
parent 9eff387207
commit ee27ca4d44
2 changed files with 7 additions and 5 deletions

View File

@@ -32,10 +32,14 @@ int main(int argc, char *argv[])
CGuiApplication::highDpiScreenSupport();
QApplication qa(argc, argv);
CGuiApplication a("swift launcher", CApplicationInfo::Laucher, CIcons::swiftLauncher1024());
a.useWebDataServices(BlackCore::CWebReaderFlags::AllSwiftDbReaders, CDatabaseReaderConfigList::forLauncher());
a.addParserOption({{"i", "installer"}, QCoreApplication::translate("main", "Installer setup."), "installer"});
if (!a.parse()) { return EXIT_FAILURE; }
if (!a.start()) { return EXIT_FAILURE; }
a.useWebDataServices(BlackCore::CWebReaderFlags::AllSwiftDbReaders, CDatabaseReaderConfigList::forLauncher());
if (!a.start())
{
a.gracefulShutdown();
return EXIT_FAILURE;
}
//! [SwiftApplicationDemo]
// Dialog to decide external or internal core