Browse Source

Merge pull request #894 from DonLakeFlyer/SSLCheck

Add SSL check
QGC4.4
Don Gagne 11 years ago
parent
commit
4fb66afeac
  1. 10
      src/main.cc

10
src/main.cc

@ -29,6 +29,8 @@ This file is part of the QGROUNDCONTROL project @@ -29,6 +29,8 @@ This file is part of the QGROUNDCONTROL project
*/
#include <QApplication>
#include <QSslSocket>
#include "QGCCore.h"
#include "MainWindow.h"
#include "configuration.h"
@ -148,6 +150,14 @@ int main(int argc, char *argv[]) @@ -148,6 +150,14 @@ int main(int argc, char *argv[])
firstStart = false;
}
core = new QGCCore(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."));
return 1;
}
val = core->exec();
} while (core->getRestartRequested());

Loading…
Cancel
Save