Commit 13a513b5 authored by Jan Grulich's avatar Jan Grulich

Fix focus in DNS servers and DNS domains dialogs

BUG: 385839
parent ad174fd6
......@@ -416,6 +416,7 @@ void IPv4Widget::slotDnsServers()
connect(buttons, &QDialogButtonBox::rejected, dialog.data(), &QDialog::reject);
KEditListWidget * listWidget = new KEditListWidget(dialog);
listWidget->setItems(m_ui->dns->text().split(',').replaceInStrings(" ", ""));
listWidget->lineEdit()->setFocus(Qt::OtherFocusReason);
dialog->layout()->addWidget(listWidget);
dialog->layout()->addWidget(buttons);
connect(dialog.data(), &QDialog::accepted,
......@@ -446,6 +447,7 @@ void IPv4Widget::slotDnsDomains()
connect(buttons, &QDialogButtonBox::rejected, dialog.data(), &QDialog::reject);
KEditListWidget * listWidget = new KEditListWidget(dialog);
listWidget->setItems(m_ui->dnsSearch->text().split(',').replaceInStrings(" ", ""));
listWidget->lineEdit()->setFocus(Qt::OtherFocusReason);
dialog->layout()->addWidget(listWidget);
dialog->layout()->addWidget(buttons);
connect(dialog.data(), &QDialog::accepted,
......
......@@ -407,6 +407,7 @@ void IPv6Widget::slotDnsServers()
connect(buttons, &QDialogButtonBox::rejected, dialog.data(), &QDialog::reject);
KEditListWidget * listWidget = new KEditListWidget(dialog);
listWidget->setItems(m_ui->dns->text().split(',').replaceInStrings(" ", ""));
listWidget->lineEdit()->setFocus(Qt::OtherFocusReason);
dialog->layout()->addWidget(listWidget);
dialog->layout()->addWidget(buttons);
connect(dialog.data(), &QDialog::accepted,
......@@ -437,6 +438,7 @@ void IPv6Widget::slotDnsDomains()
connect(buttons, &QDialogButtonBox::rejected, dialog.data(), &QDialog::reject);
KEditListWidget * listWidget = new KEditListWidget(dialog);
listWidget->setItems(m_ui->dnsSearch->text().split(',').replaceInStrings(" ", ""));
listWidget->lineEdit()->setFocus(Qt::OtherFocusReason);
dialog->layout()->addWidget(listWidget);
dialog->layout()->addWidget(buttons);
connect(dialog.data(), &QDialog::accepted,
......
......@@ -396,6 +396,7 @@ a temporary IPv6 address in addition to the public one generated from MAC addres
<tabstop>dns</tabstop>
<tabstop>dnsMorePushButton</tabstop>
<tabstop>dnsSearch</tabstop>
<tabstop>dnsSearchMorePushButton</tabstop>
<tabstop>privacyCombo</tabstop>
<tabstop>tableViewAddresses</tabstop>
<tabstop>btnAdd</tabstop>
......
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