1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

LP-493 uavobjectbrowser: properly restore highlight color and other attributes when changing view options

This commit is contained in:
Philippe Renon 2017-03-10 09:54:40 +01:00
parent 556c2e9e99
commit d47956c7e6

View File

@ -271,9 +271,11 @@ void UAVObjectBrowserWidget::updateViewOptions()
m_viewoptions->cbMetaData->isChecked(),
m_viewoptions->cbScientific->isChecked());
model->setUnknowObjectColor(m_unknownObjectColor);
model->setRecentlyUpdatedColor(m_recentlyUpdatedColor);
model->setManuallyChangedColor(m_manuallyChangedColor);
model->setRecentlyUpdatedTimeout(m_recentlyUpdatedTimeout);
model->setUnknowObjectColor(m_unknownObjectColor);
model->setOnlyHilightChangedValues(m_onlyHilightChangedValues);
UAVObjectTreeModel *tmpModel = m_model;
m_model = model;