From 1eb2b7e2c7659e46d4c6dd3786d457c14c5e7ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bri=C3=A8re?= Date: Tue, 31 Mar 2020 17:51:15 -0400 Subject: Give focus to profileLineEdit in GetProfileNameForm constructor Even though focus is supposed to initially go to profileLineEdit (due to its first position in the tabstops list), this doesn't seem to be the case in reality (at least for me). --- src/gui/getprofilenameform.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/gui/getprofilenameform.cpp b/src/gui/getprofilenameform.cpp index f2042c5..854b9c2 100644 --- a/src/gui/getprofilenameform.cpp +++ b/src/gui/getprofilenameform.cpp @@ -35,6 +35,9 @@ void GetProfileNameForm::init() // Set validators // USER profileLineEdit->setValidator(new QRegExpValidator(rxFilenameChars, this)); + + // Focus seems to default to OK button, despite tab order + profileLineEdit->setFocus(); } void GetProfileNameForm::validate() -- cgit v1.2.3