1
0
Fork 1
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:
Marc Zinnschlag 2014-07-10 12:13:27 +02:00
parent d6c0b8d0ac
commit 57b9b8d884

View file

@ -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)