author | tille <tille> | 2003-06-18 13:50:44 (UTC) |
---|---|---|
committer | tille <tille> | 2003-06-18 13:50:44 (UTC) |
commit | db7c5730e22188f365eb9d52aed961066fbda026 (patch) (side-by-side diff) | |
tree | 9995642a2142f47e011ff15443696d4a8a6f5c26 | |
parent | d1e67f2e4b959407a9f3850735f6ec1754ed1a8e (diff) | |
download | opie-db7c5730e22188f365eb9d52aed961066fbda026.zip opie-db7c5730e22188f365eb9d52aed961066fbda026.tar.gz opie-db7c5730e22188f365eb9d52aed961066fbda026.tar.bz2 |
single dns gets loaded now
-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 @@ -180,13 +180,14 @@ void InterfaceSetupImp::setProfile(const QString &profile){ autoStart->setChecked(interfaces->isAuto(interface->getInterfaceName())); QString dns = interfaces->getInterfaceOption("up "DNSSCRIPT" -a", error); qDebug("dns >%s<",dns.latin1()); if(dns.contains(" ")){ firstDNSLineEdit->setText(dns.mid(0, dns.find(" "))); secondDNSLineEdit->setText(dns.mid(dns.find(" ")+1, dns.length())); - } + }else firstDNSLineEdit->setText(dns); + ipAddressEdit->setText(interfaces->getInterfaceOption("address", error)); subnetMaskEdit->setText(interfaces->getInterfaceOption("netmask", error)); gatewayEdit->setText(interfaces->getInterfaceOption("gateway", error)); |