Commit ae730288 authored by pixhawk's avatar pixhawk

Added version check for settings to prevent application crashes because of...

Added version check for settings to prevent application crashes because of old, incompatible settings
parent 152bb9b3
......@@ -74,6 +74,7 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv)
// clear them if they mismatch
// QGC then falls back to default
QSettings settings;
settings.sync();
if (settings.contains("QGC_APPLICATION_VERSION_INT"))
{
QString qgcVersion = settings.value("QGC_APPLICATION_VERSION").toString();
......
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