Commit dd1afa8b authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Disable input focus for UI element showing resulting user id/DN

The UI element showing the resulting user id/DN built from the values
of the other input fields is read-only. Allowing it to get input focus
allows the user to copy its text, but it doesn't allow editing the text
although is looks like it would. I think that this is more confusing than
helpful.

GnuPG-bug-id: 5832
parent 5a884b79
......@@ -778,6 +778,7 @@ public:
: WizardPage(p), dialog(this), ui()
{
ui.setupUi(this);
ui.resultLE->setFocusPolicy(Qt::NoFocus);
// set errorLB to have a fixed height of two lines:
ui.errorLB->setText(QStringLiteral("2<br>1"));
......@@ -1528,7 +1529,6 @@ void EnterDetailsPage::updateForm()
std::copy(lines.cbegin(), lines.cend(), std::back_inserter(lineList));
widgets.push_back(ui.withPassCB);
widgets.push_back(ui.resultLE);
widgets.push_back(ui.advancedPB);
const bool prefillName = (pgp() && settings.prefillName()) || (!pgp() && settings.prefillCN());
......
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