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

Merged in filnet/librepilot/LP-493_uavobjectbrowser_restore_highlight (pull request #399)

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

Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
This commit is contained in:
Philippe Renon 2017-04-17 09:32:47 +00:00 committed by Lalanne Laurent
commit 133d21280e

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;