From d47956c7e6cc5526a31ba92d29765a18eb001bc5 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Fri, 10 Mar 2017 09:54:40 +0100 Subject: [PATCH] LP-493 uavobjectbrowser: properly restore highlight color and other attributes when changing view options --- .../src/plugins/uavobjectbrowser/uavobjectbrowserwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ground/gcs/src/plugins/uavobjectbrowser/uavobjectbrowserwidget.cpp b/ground/gcs/src/plugins/uavobjectbrowser/uavobjectbrowserwidget.cpp index cdca774c9..93b1b76c5 100644 --- a/ground/gcs/src/plugins/uavobjectbrowser/uavobjectbrowserwidget.cpp +++ b/ground/gcs/src/plugins/uavobjectbrowser/uavobjectbrowserwidget.cpp @@ -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;