/// @brief Returns the QGCApplication object singleton.
/// @brief Returns the QGCApplication object singleton.
QGCApplication*qgcApp(void)
QGCApplication*qgcApp(void)
{
{
Q_ASSERT(QGCApplication::_app);
returnQGCApplication::_app;
returnQGCApplication::_app;
}
}
...
@@ -612,19 +610,19 @@ void QGCApplication::reportMissingParameter(int componentId, const QString& name
...
@@ -612,19 +610,19 @@ void QGCApplication::reportMissingParameter(int componentId, const QString& name
/// Called when the delay timer fires to show the missing parameters warning
/// Called when the delay timer fires to show the missing parameters warning
voidQGCApplication::_missingParamsDisplay(void)
voidQGCApplication::_missingParamsDisplay(void)
{
{
Q_ASSERT(_missingParams.count());
if(_missingParams.count()){
QStringparams;
QStringparams;
foreach(constQString&name,_missingParams){
foreach(constQString&name,_missingParams){
if(params.isEmpty()){
if(params.isEmpty()){
params+=name;
params+=name;
}else{
}else{
params+=QString(", %1").arg(name);
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));