author | kergoth <kergoth> | 2003-04-14 23:32:55 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-14 23:32:55 (UTC) |
commit | 9de8e53272af12de09283fc796864557db7f29f4 (patch) (side-by-side diff) | |
tree | 8e8b6191c7b0db3103b0e674a87dcee2c5a92586 | |
parent | fb07cc161b4adc5bc250569599a7164af2d7caba (diff) | |
download | opie-9de8e53272af12de09283fc796864557db7f29f4.zip opie-9de8e53272af12de09283fc796864557db7f29f4.tar.gz opie-9de8e53272af12de09283fc796864557db7f29f4.tar.bz2 |
BUGFIX: didnt call setProfile on interfaces for which a module exists, were only calling it on standard InterfaceSetupImpDialog interfaces.
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp index 50131d8..7e24cda 100644 --- a/noncore/settings/networksettings/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindowimp.cpp @@ -190,10 +190,8 @@ void MainWindowImp::getAllInterfaces(){ Interface *i = NULL;
strcpy(ifr.ifr_name, (*it).latin1());
- qWarning("ifr.ifr_name=%s\n", ifr.ifr_name);
-
struct ifreq ifcopy;
ifcopy = ifr;
result = ioctl(sockfd, SIOCGIFFLAGS, &ifcopy);
flags = ifcopy.ifr_flags;
@@ -388,21 +386,24 @@ void MainWindowImp::configureClicked(){ QMessageBox::information(this, "Sorry","Please select an interface first.", QMessageBox::Ok);
return;
}
+ QString currentProfileText = currentProfileLabel->text();
+ if(currentProfileText.upper() == "ALL");
+ currentProfileText = "";
+
Interface *i = interfaceItems[item];
+
if(i->getModuleOwner()){
QWidget *moduleConfigure = i->getModuleOwner()->configure(i);
if(moduleConfigure != NULL){
+ i->getModuleOwner()->setProfile(currentProfileText);
moduleConfigure->showMaximized();
return;
}
}
InterfaceSetupImpDialog *configure = new InterfaceSetupImpDialog(this, "InterfaceSetupImp", i, true, Qt::WDestructiveClose );
- QString currentProfileText = currentProfileLabel->text();
- if(currentProfileText.upper() == "ALL");
- currentProfileText = "";
configure->setProfile(currentProfileText);
configure->showMaximized();
}
|