// User requested settings to be cleared on command line
// User requested settings to be cleared on command line
settings.clear();
settings.clear();
settings.sync();
}
}
}
boolQGCCore::init(void)
{
QSettingssettings;
// SSL support is required. No reason to go any further without it
if(!QSslSocket::supportsSsl()){
QMessageBox::critical(NULL,
QObject::tr("Missing SSL Support"),
QObject::tr("QGroundControl requires support for SSL to be installed prior to running. Please see http://www.qgroundcontrol.org/downloads for instructions on installing prerequisites for QGroundControl."));
returnfalse;
}
// Exit main application when last window is closed
tr("qgroundcontrol has been upgraded from version %1 to version %2. Some of your user preferences have been reset to defaults for safety reasons. Please adjust them where needed.").arg(lastApplicationVersion).arg(QGC_APPLICATION_VERSION));
tr("qgroundcontrol has been upgraded from version %1 to version %2. Some of your user preferences have been reset to defaults for safety reasons. Please adjust them where needed.").arg(lastApplicationVersion).arg(QGC_APPLICATION_VERSION));
@@ -140,26 +140,12 @@ int main(int argc, char *argv[])
...
@@ -140,26 +140,12 @@ int main(int argc, char *argv[])
}
}
#endif
#endif
QGCCore*core=NULL;
QGCCore*core=newQGCCore(argc,argv);
intval;
Q_CHECK_PTR(core);
boolfirstStart=true;
if(!core->init()){
do{
return-1;
if(core){
}
deletecore;
firstStart=false;
}
core=newQGCCore(firstStart,argc,argv);
if(!QSslSocket::supportsSsl()){
QMessageBox::critical(NULL,
QObject::tr("Missing SSL Support"),
QObject::tr("QGroundControl requires support for SSL to be installed prior to running. Please see http://www.qgroundcontrol.org/downloads for instructions on installing prerequisites for QGroundControl."));