1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

LP-16 Fixed small errors.

This commit is contained in:
m_thread 2015-07-16 11:23:32 +02:00
parent 72938ec954
commit 9b7e5b3ae2

View File

@ -76,7 +76,7 @@ bool VehicleTemplateSelectorWidget::selectedTemplateEditable() const
if (ui->templateList->currentRow() >= 0) {
return ui->templateList->item(ui->templateList->currentRow())->data(Qt::UserRole + 2).value<bool>();
}
return NULL;
return false;
}
QString VehicleTemplateSelectorWidget::selectedTemplatePath() const
@ -84,7 +84,7 @@ QString VehicleTemplateSelectorWidget::selectedTemplatePath() const
if (ui->templateList->currentRow() >= 0) {
return ui->templateList->item(ui->templateList->currentRow())->data(Qt::UserRole + 3).value<QString>();
}
return NULL;
return "";
}
void VehicleTemplateSelectorWidget::updateTemplates()