/// @brief Returns the QGCApplication object singleton.
QGCApplication*qgcApp(void)
{
Q_ASSERT(QGCApplication::_app);
returnQGCApplication::_app;
}
...
...
@@ -612,19 +610,19 @@ void QGCApplication::reportMissingParameter(int componentId, const QString& name
/// Called when the delay timer fires to show the missing parameters warning
voidQGCApplication::_missingParamsDisplay(void)
{
Q_ASSERT(_missingParams.count());
QStringparams;
foreach(constQString&name,_missingParams){
if(params.isEmpty()){
params+=name;
}else{
params+=QString(", %1").arg(name);
if(_missingParams.count()){
QStringparams;
foreach(constQString&name,_missingParams){
if(params.isEmpty()){
params+=name;
}else{
params+=QString(", %1").arg(name);
}
}
}
_missingParams.clear();
_missingParams.clear();
showMessage(QString("Parameters are missing from firmware. You may be running a version of firmware QGC does not work correctly with or your firmware has a bug in it. Missing params: %1").arg(params));
showMessage(QString("Parameters are missing from firmware. You may be running a version of firmware QGC does not work correctly with or your firmware has a bug in it. Missing params: %1").arg(params));