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

IntensityDataProjectionsWidget: fix switching between data in projection mode

parent 2f28fccd
No related branches found
No related tags found
1 merge request!1339GUI: fix masks and projections
......@@ -79,6 +79,11 @@ void IntensityDataProjectionsWidget::setContext()
m_selectionModel.reset(new QItemSelectionModel(containerModel));
m_projectionsCanvas->setSelectionModel(m_selectionModel.get());
// The following line must come before 'm_projectionsCanvas->setContext()'!
// It prevents problem with switching between datasets in projectoin mode.
m_projectionsWidget->disconnectItem();
m_projectionsCanvas->setContext(currentIntensityDataItem());
m_projectionsWidget->setIntensityItem(currentIntensityDataItem());
......
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