|
|
@ -85,6 +85,7 @@ QVariantMap Ipv6SettingsTab::readSettings()
|
|
|
|
void Ipv6SettingsTab::loadSettings(QVariantMap settings)
|
|
|
|
void Ipv6SettingsTab::loadSettings(QVariantMap settings)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
origSettings = settings; // We may need to restore these if something about the settings the user puts in is invalid.
|
|
|
|
origSettings = settings; // We may need to restore these if something about the settings the user puts in is invalid.
|
|
|
|
|
|
|
|
|
|
|
|
if (settings["ipv6Method"].isValid()) {
|
|
|
|
if (settings["ipv6Method"].isValid()) {
|
|
|
|
switch (settings["ipv6Method"].toInt()) {
|
|
|
|
switch (settings["ipv6Method"].toInt()) {
|
|
|
|
case ConnectionSettingsEngine::Ipv6Automatic:
|
|
|
|
case ConnectionSettingsEngine::Ipv6Automatic:
|
|
|
@ -111,6 +112,8 @@ void Ipv6SettingsTab::loadSettings(QVariantMap settings)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onMethodComboBoxCurrentIndexChanged(ui->methodComboBox->currentIndex());
|
|
|
|
|
|
|
|
|
|
|
|
if (settings["ipv6DnsServers"].isValid()) {
|
|
|
|
if (settings["ipv6DnsServers"].isValid()) {
|
|
|
|
ui->dnsServersLineEdit->setText(settings["ipv6DnsServers"].toString());
|
|
|
|
ui->dnsServersLineEdit->setText(settings["ipv6DnsServers"].toString());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -156,8 +159,12 @@ void Ipv6SettingsTab::onMethodComboBoxCurrentIndexChanged(int index)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (index == 4) { // manual
|
|
|
|
if (index == 4) { // manual
|
|
|
|
ui->manualIpv6ConfigurationTable->setEnabled(true);
|
|
|
|
ui->manualIpv6ConfigurationTable->setEnabled(true);
|
|
|
|
|
|
|
|
ui->manualIpv6ConfigurationAddButton->setEnabled(true);
|
|
|
|
|
|
|
|
ui->manualIpv6ConfigurationRemoveButton->setEnabled(true);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ui->manualIpv6ConfigurationTable->setEnabled(false);
|
|
|
|
ui->manualIpv6ConfigurationTable->setEnabled(false);
|
|
|
|
|
|
|
|
ui->manualIpv6ConfigurationAddButton->setEnabled(false);
|
|
|
|
|
|
|
|
ui->manualIpv6ConfigurationRemoveButton->setEnabled(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|