Skip to content
Snippets Groups Projects
Commit 4d88b934 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

upd units immediately on switch to sld

parent a51b0497
No related branches found
No related tags found
2 merge requests!1610From final 20.1,!1608Immediately update material units (fix to !1607)
Pipeline #97832 passed
......@@ -24,6 +24,7 @@
#include "GUI/View/Numeric/DoubleSpinBox.h"
#include "GUI/View/SampleDesigner/LayerEditorUtils.h"
#include "GUI/View/SampleDesigner/SampleEditorController.h"
#include "GUI/View/SampleDesigner/SampleForm.h"
#include "GUI/View/Tool/Globals.h"
#include "GUI/View/Tool/LayoutUtils.h"
#include <QGridLayout>
......@@ -74,6 +75,7 @@ void MaterialInplaceForm::selectMaterial()
createWidgets();
connect(itemWithMaterial()->materialItem(), &MaterialItem::dataChanged, this,
&MaterialInplaceForm::onMaterialChanged);
m_ec->sampleForm()->updateUnits(); // necessary on switch from refractive index to SLD
} else {
updateValues(); // necessary, since in the material editor the values could have been
// changed without selecting a different material
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment