From a22f8dd98789f4638ab241d281d4319e0ed911ba Mon Sep 17 00:00:00 2001 From: benmeyer Date: Wed, 30 Oct 2002 15:36:45 +0000 Subject: Re-added profile information which makes interfaces work again --- (limited to 'noncore/net/networksetup/mainwindowimp.cpp') diff --git a/noncore/net/networksetup/mainwindowimp.cpp b/noncore/net/networksetup/mainwindowimp.cpp index b9fff56..6440bd4 100644 --- a/noncore/net/networksetup/mainwindowimp.cpp +++ b/noncore/net/networksetup/mainwindowimp.cpp @@ -230,14 +230,8 @@ void MainWindowImp::configureClicked(){ return; } - QString currentProfile = currentProfileLabel->text(); - if(profilesList->count() <= 1 || currentProfile == "All"){ - currentProfile = ""; - } - Interface *i = interfaceItems[item]; if(i->getModuleOwner()){ - i->getModuleOwner()->setProfile(currentProfile); QWidget *moduleConfigure = i->getModuleOwner()->configure(i); if(moduleConfigure != NULL){ moduleConfigure->showMaximized(); @@ -247,7 +241,10 @@ void MainWindowImp::configureClicked(){ } InterfaceSetupImpDialog *configure = new InterfaceSetupImpDialog(0, "InterfaceSetupImp", i, true, Qt::WDestructiveClose); - //configure->setProfile(currentProfile); + QString currentProfileText = currentProfileLabel->text(); + if(currentProfileText.upper() == "ALL"); + currentProfileText = ""; + configure->setProfile(currentProfileText); configure->showMaximized(); configure->show(); } @@ -270,11 +267,6 @@ void MainWindowImp::informationClicked(){ return; } - QStringList list; - for(uint i = 0; i < profilesList->count(); i++){ - list.append(profilesList->text(i)); - } - if(i->getModuleOwner()){ QWidget *moduleInformation = i->getModuleOwner()->information(i); if(moduleInformation != NULL){ @@ -538,6 +530,7 @@ void MainWindowImp::changeProfile(){ } } } + // TODO change the profile in the modules } // mainwindowimp.cpp -- cgit v0.9.0.2