#4753 Fix selection of plot subitems jumps to parent plot

This commit is contained in:
Magne Sjaastad
2019-09-24 12:35:03 +02:00
parent 980d483024
commit 611e1f24d3

View File

@@ -758,7 +758,9 @@ void RiuPlotMainWindow::selectedObjectsChanged()
{
if ( selectedWindow->viewWidget() )
{
setActiveViewer( selectedWindow->viewWidget() );
setBlockSlotSubWindowActivated(true);
setActiveViewer(selectedWindow->viewWidget());
setBlockSlotSubWindowActivated(false);
}
// The only way to get to this code is by selection change initiated from the project tree view
// As we are activating an MDI-window, the focus is given to this MDI-window