1
0
Fork 0

Set window focus when toggling with graph detached

This commit is contained in:
torusrxxx 2020-07-26 17:46:58 +08:00
parent 210329b3e1
commit 6234abbed8
No known key found for this signature in database
GPG Key ID: A795C73A0F1CFADD
1 changed files with 8 additions and 0 deletions

View File

@ -169,6 +169,10 @@ void CPUWidget::setDisasmFocus()
connect(mDisas, SIGNAL(selectionChanged(dsint)), mInfo, SLOT(disasmSelectionChanged(dsint)));
disconnect(mGraph, SIGNAL(selectionChanged(dsint)), mInfo, SLOT(disasmSelectionChanged(dsint)));
}
else if(disasMode == 2)
{
activateWindow();
}
mDisas->setFocus();
}
@ -183,6 +187,10 @@ void CPUWidget::setGraphFocus()
disconnect(mDisas, SIGNAL(selectionChanged(dsint)), mInfo, SLOT(disasmSelectionChanged(dsint)));
connect(mGraph, SIGNAL(selectionChanged(dsint)), mInfo, SLOT(disasmSelectionChanged(dsint)));
}
else if(disasMode == 2)
{
mGraph->activateWindow();
}
mGraph->setFocus();
}