Commit 3fd4c18f authored by Harald Sitter's avatar Harald Sitter 💣

focus lineedits for bug info page

otherwise we'd have the cancel button focus which isn't terribly useful
this late into the wizard. meanwhile focusing the lineedits means an
experienced reporter can get typing right away

BUG: 428350
parent d02d5243
......@@ -413,6 +413,14 @@ void BugzillaInformationPage::checkTexts()
ui.m_titleEdit->setVisible(showTitle);
ui.m_titleLabel->setVisible(showTitle);
// Force focus on the first input field for ease of use.
// https://bugs.kde.org/show_bug.cgi?id=428350
if (showTitle) {
ui.m_titleEdit->setFocus();
} else {
ui.m_detailsEdit->setFocus();
}
bool ok = !((ui.m_titleEdit->isVisible() && ui.m_titleEdit->text().isEmpty())
|| ui.m_detailsEdit->toPlainText().isEmpty());
......
Markdown is supported
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