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:
parent
72938ec954
commit
9b7e5b3ae2
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user