-rw-r--r-- | noncore/settings/networksettings/interfaces/interfacesetupimp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp b/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp index 8de30de..f19cbdd 100644 --- a/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp +++ b/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp | |||
@@ -183,7 +183,8 @@ void InterfaceSetupImp::setProfile(const QString &profile){ | |||
183 | if(dns.contains(" ")){ | 183 | if(dns.contains(" ")){ |
184 | firstDNSLineEdit->setText(dns.mid(0, dns.find(" "))); | 184 | firstDNSLineEdit->setText(dns.mid(0, dns.find(" "))); |
185 | secondDNSLineEdit->setText(dns.mid(dns.find(" ")+1, dns.length())); | 185 | secondDNSLineEdit->setText(dns.mid(dns.find(" ")+1, dns.length())); |
186 | } | 186 | }else firstDNSLineEdit->setText(dns); |
187 | |||
187 | ipAddressEdit->setText(interfaces->getInterfaceOption("address", error)); | 188 | ipAddressEdit->setText(interfaces->getInterfaceOption("address", error)); |
188 | subnetMaskEdit->setText(interfaces->getInterfaceOption("netmask", error)); | 189 | subnetMaskEdit->setText(interfaces->getInterfaceOption("netmask", error)); |
189 | gatewayEdit->setText(interfaces->getInterfaceOption("gateway", error)); | 190 | gatewayEdit->setText(interfaces->getInterfaceOption("gateway", error)); |