author | benmeyer <benmeyer> | 2002-10-18 16:27:02 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-10-18 16:27:02 (UTC) |
commit | 12851a09a2761ca6e189f080e9ca69bf4974302f (patch) (unidiff) | |
tree | 1b9a368fc5e424d4bf60f4c582b87b23a975c26a /noncore/settings/networksettings/interfacesetupimp.cpp | |
parent | 47e60a8dc20f46dd00b9405f7fde122792018627 (diff) | |
download | opie-12851a09a2761ca6e189f080e9ca69bf4974302f.zip opie-12851a09a2761ca6e189f080e9ca69bf4974302f.tar.gz opie-12851a09a2761ca6e189f080e9ca69bf4974302f.tar.bz2 |
Can now remove mapping and is done so automagicly when you delete a profile
Diffstat (limited to 'noncore/settings/networksettings/interfacesetupimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/interfacesetupimp.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/interfacesetupimp.cpp b/noncore/settings/networksettings/interfacesetupimp.cpp index bdbdfde..1327726 100644 --- a/noncore/settings/networksettings/interfacesetupimp.cpp +++ b/noncore/settings/networksettings/interfacesetupimp.cpp | |||
@@ -89,13 +89,12 @@ bool InterfaceSetupImp::saveSettings(){ | |||
89 | * @profile the new profile. | 89 | * @profile the new profile. |
90 | */ | 90 | */ |
91 | void InterfaceSetupImp::setProfile(const QString &profile){ | 91 | void InterfaceSetupImp::setProfile(const QString &profile){ |
92 | QString newInterfaceName = interface->getInterfaceName(); | 92 | QString newInterfaceName = interface->getInterfaceName(); |
93 | if(profile.length() > 0) | 93 | if(profile.length() > 0) |
94 | newInterfaceName += "_" + profile; | 94 | newInterfaceName += "_" + profile; |
95 | qDebug( newInterfaceName.latin1()); | ||
96 | // See if we have to make a interface. | 95 | // See if we have to make a interface. |
97 | if(!interfaces->setInterface(newInterfaceName)){ | 96 | if(!interfaces->setInterface(newInterfaceName)){ |
98 | // Add making for this new interface if need too | 97 | // Add making for this new interface if need too |
99 | if(profile != ""){ | 98 | if(profile != ""){ |
100 | interfaces->copyInterface(interface->getInterfaceName(), newInterfaceName); | 99 | interfaces->copyInterface(interface->getInterfaceName(), newInterfaceName); |
101 | if(!interfaces->setMapping(interface->getInterfaceName())){ | 100 | if(!interfaces->setMapping(interface->getInterfaceName())){ |