mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 21:45:33 +00:00
set focus when opening a toolbar panel
This commit is contained in:
parent
d6c0b8d0ac
commit
57b9b8d884
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ void CSVWidget::SceneToolMode::showPanel (const QPoint& position)
|
|||
{
|
||||
mPanel->move (position);
|
||||
mPanel->show();
|
||||
|
||||
if (!mButtons.empty())
|
||||
mButtons.begin()->first->setFocus (Qt::OtherFocusReason);
|
||||
}
|
||||
|
||||
void CSVWidget::SceneToolMode::addButton (const std::string& icon, const std::string& id)
|
||||
|
|
Loading…
Reference in a new issue