From 9de2db2fb8ddac82d4f339b5689417c93f0daa5c Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 16 Jan 2018 22:50:47 +0200 Subject: Automatically focus on input when opening a dialog --- src/dialogs/InviteUsers.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/dialogs/InviteUsers.cc') diff --git a/src/dialogs/InviteUsers.cc b/src/dialogs/InviteUsers.cc index 22042453..d46ca17e 100644 --- a/src/dialogs/InviteUsers.cc +++ b/src/dialogs/InviteUsers.cc @@ -147,3 +147,11 @@ InviteUsers::invitedUsers() const return users; } + +void +InviteUsers::showEvent(QShowEvent *event) +{ + inviteeInput_->setFocus(); + + QFrame::showEvent(event); +} -- cgit 1.5.1