Commit 0c137e8a authored by ctrlaltca's avatar ctrlaltca
Browse files

Merge pull request #1662 from BrandonGriffin/SetFocusOnDescriptionWhenLoadingGameDialog

Added set focus to description anytime a create dialog is opened
parents de6235f6 813a0c20
...@@ -133,6 +133,7 @@ DlgCreateGame::DlgCreateGame(TabRoom *_room, const QMap<int, QString> &_gameType ...@@ -133,6 +133,7 @@ DlgCreateGame::DlgCreateGame(TabRoom *_room, const QMap<int, QString> &_gameType
actReset(); actReset();
} }
descriptionEdit->setFocus();
clearButton = new QPushButton(tr("&Clear")); clearButton = new QPushButton(tr("&Clear"));
buttonBox->addButton(QDialogButtonBox::Cancel); buttonBox->addButton(QDialogButtonBox::Cancel);
buttonBox->addButton(clearButton, QDialogButtonBox::ActionRole); buttonBox->addButton(clearButton, QDialogButtonBox::ActionRole);
...@@ -205,7 +206,7 @@ void DlgCreateGame::actReset() ...@@ -205,7 +206,7 @@ void DlgCreateGame::actReset()
gameTypeCheckBoxIterator.value()->setChecked(false); gameTypeCheckBoxIterator.value()->setChecked(false);
} }
descriptionEdit->setFocus(); descriptionEdit->setFocus();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment