route group dialog grabs focus when shown

This commit is contained in:
Paul Davis 2022-10-03 08:11:53 -06:00
parent aedf697646
commit fe0cde3781
2 changed files with 9 additions and 0 deletions

View File

@ -242,3 +242,10 @@ RouteGroupDialog::unique_name (std::string const name) const
return (i == route_groups.end ());
}
void
RouteGroupDialog::on_map ()
{
ArdourDialog::on_map ();
_name.grab_focus ();
}

View File

@ -37,6 +37,8 @@ public:
ARDOUR::RouteGroup* group() const { return _group; }
bool name_check () const;
void on_map ();
private:
ARDOUR::RouteGroup* _group;
std::string _initial_name;