summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrédéric Brière <fbriere@fbriere.net>2020-03-31 17:51:15 -0400
committerFrédéric Brière <fbriere@fbriere.net>2020-03-31 18:07:02 -0400
commit1eb2b7e2c7659e46d4c6dd3786d457c14c5e7ddd (patch)
tree2bd2dfa675641963743665868ee6595813f2ca15 /src
parentba8292d0fb08d39b0d8b9913889ffd589821b070 (diff)
downloadtwinkle-1eb2b7e2c7659e46d4c6dd3786d457c14c5e7ddd.tar
twinkle-1eb2b7e2c7659e46d4c6dd3786d457c14c5e7ddd.tar.gz
twinkle-1eb2b7e2c7659e46d4c6dd3786d457c14c5e7ddd.tar.lz
twinkle-1eb2b7e2c7659e46d4c6dd3786d457c14c5e7ddd.tar.xz
twinkle-1eb2b7e2c7659e46d4c6dd3786d457c14c5e7ddd.zip
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).
Diffstat (limited to 'src')
-rw-r--r--src/gui/getprofilenameform.cpp3
1 files changed, 3 insertions, 0 deletions
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()