Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mlz
BornAgain
Commits
f88175fb
Commit
f88175fb
authored
Jun 13, 2022
by
Mikhail Svechnikov
Committed by
Mikhail Svechnikov
Jun 13, 2022
Browse files
on destruction
parent
0d354660
Changes
1
Hide whitespace changes
Inline
Side-by-side
GUI/View/PlotUtil/IntensityDataPropertyWidget.cpp
View file @
f88175fb
...
...
@@ -154,7 +154,7 @@ void IntensityDataPropertyWidget::setItem(QVector<IntensityDataItem*> itemsVec)
this
);
#else
FOR_EACH_ITEM
connect
(
item
,
&
IntensityDataItem
::
axesUnitsChanged
,
this
,
[
=
]()
{
connect
(
item
,
&
IntensityDataItem
::
axesUnitsChanged
,
this
,
[
=
](){
if
(
jobItem
())
{
item
->
blockSignals
(
true
);
item
->
updateCoords
(
jobItem
()
->
instrumentItem
());
...
...
@@ -163,6 +163,16 @@ void IntensityDataPropertyWidget::setItem(QVector<IntensityDataItem*> itemsVec)
}
});
#endif
for
(
int
i
=
0
;
i
<
itemsVec
.
size
();
i
++
)
if
(
itemsVec
[
i
])
#ifdef USE_MAPPERS
itemsVec
[
i
]
->
mapper
()
->
setOnItemDestroy
(
[
this
,
i
](
SessionItem
*
)
{
m_items_vec
[
i
]
=
nullptr
;
},
this
);
#else
connect
(
itemsVec
[
i
],
&
IntensityDataItem
::
destroyed
,
this
,
[
=
]()
{
m_items_vec
[
i
]
=
nullptr
;
});
#endif
}
const
JobItem
*
IntensityDataPropertyWidget
::
jobItem
()
const
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment