Activate parameter editor panel when jumping from node view
Call setAsCurrentTab() and activateWindow() on the ParamPanel dock widget in ShowSelectedNodeInParamEditor so the parameter editor becomes the active tab/window when invoked from the node view context menu or Shift+P shortcut.
This commit is contained in:
@@ -1686,7 +1686,8 @@ void NodeView::ShowSelectedNodeInParamEditor()
|
|||||||
if (PanelWidget *panel = PanelManager::instance()->GetPanelWithName(
|
if (PanelWidget *panel = PanelManager::instance()->GetPanelWithName(
|
||||||
QStringLiteral("ParamPanel"))) {
|
QStringLiteral("ParamPanel"))) {
|
||||||
panel->show();
|
panel->show();
|
||||||
panel->raise();
|
panel->setAsCurrentTab();
|
||||||
|
panel->activateWindow();
|
||||||
panel->setFocus(Qt::OtherFocusReason);
|
panel->setFocus(Qt::OtherFocusReason);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user