Update editor data when stashed data are modified (e.g. by drag and drop)

This issue was discovered during testing for #640
This commit is contained in:
Klaus Basan
2016-05-06 18:16:47 +02:00
parent 96189f530b
commit f3ac18257f
10 changed files with 87 additions and 32 deletions

View File

@@ -67,9 +67,9 @@ namespace BlackGui
return this->ui->editor_AirlineIcao->getValue();
}
void CLiveryForm::setValue(const CLivery &livery)
bool CLiveryForm::setValue(const CLivery &livery)
{
if (this->m_originalLivery == livery) { return; }
if (this->m_originalLivery == livery) { return false; }
this->m_originalLivery = livery;
this->ui->comp_LiverySelector->setLivery(livery);
@@ -88,6 +88,7 @@ namespace BlackGui
{
this->ui->editor_AirlineIcao->setValue(livery.getAirlineIcaoCode());
}
return true;
}
CStatusMessageList CLiveryForm::validate(bool withNestedForms) const