Commit 4fb66afe authored by Don Gagne's avatar Don Gagne

Merge pull request #894 from DonLakeFlyer/SSLCheck

Add SSL check
parents c1e68051 6eda19da
...@@ -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 <QApplication>
#include <QSslSocket>
#include "QGCCore.h" #include "QGCCore.h"
#include "MainWindow.h" #include "MainWindow.h"
#include "configuration.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; firstStart = false;
} }
core = new QGCCore(firstStart, argc, argv); 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(); val = core->exec();
} while (core->getRestartRequested()); } while (core->getRestartRequested());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment