From 9de8e53272af12de09283fc796864557db7f29f4 Mon Sep 17 00:00:00 2001 From: kergoth Date: Mon, 14 Apr 2003 23:32:55 +0000 Subject: BUGFIX: didnt call setProfile on interfaces for which a module exists, were only calling it on standard InterfaceSetupImpDialog interfaces. --- (limited to 'noncore/settings') 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 @@ -191,8 +191,6 @@ void MainWindowImp::getAllInterfaces(){ 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); @@ -389,19 +387,22 @@ void MainWindowImp::configureClicked(){ 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(); } -- cgit v0.9.0.2