summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/interfaces/interfaceinformationimp.cpp
Unidiff
Diffstat (limited to 'noncore/net/networksetup/interfaces/interfaceinformationimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/interfaces/interfaceinformationimp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/networksetup/interfaces/interfaceinformationimp.cpp b/noncore/net/networksetup/interfaces/interfaceinformationimp.cpp
index cf3dba1..1fa5d38 100644
--- a/noncore/net/networksetup/interfaces/interfaceinformationimp.cpp
+++ b/noncore/net/networksetup/interfaces/interfaceinformationimp.cpp
@@ -17,25 +17,25 @@ InterfaceInformationImp::InterfaceInformationImp(QWidget *parent, const char *na
17 connect(startButton, SIGNAL(clicked()), interface, SLOT(start())); 17 connect(startButton, SIGNAL(clicked()), interface, SLOT(start()));
18 connect(stopButton, SIGNAL(clicked()), interface, SLOT(stop())); 18 connect(stopButton, SIGNAL(clicked()), interface, SLOT(stop()));
19 connect(restartButton, SIGNAL(clicked()), interface, SLOT(restart())); 19 connect(restartButton, SIGNAL(clicked()), interface, SLOT(restart()));
20 connect(refreshButton, SIGNAL(clicked()), interface, SLOT(refresh())); 20 connect(refreshButton, SIGNAL(clicked()), interface, SLOT(refresh()));
21 connect(advancedButton, SIGNAL(clicked()), this, SLOT(advanced())); 21 connect(advancedButton, SIGNAL(clicked()), this, SLOT(advanced()));
22} 22}
23 23
24/** 24/**
25 * Update the interface information and buttons. 25 * Update the interface information and buttons.
26 * @param Intarface *i the interface to update (should be the one we already 26 * @param Intarface *i the interface to update (should be the one we already
27 * know about). 27 * know about).
28 */ 28 */
29void InterfaceInformationImp::updateInterface(Interface *i){ 29void InterfaceInformationImp::updateInterface(Interface *){
30 if(interface->getStatus()){ 30 if(interface->getStatus()){
31 startButton->setEnabled(false); 31 startButton->setEnabled(false);
32 stopButton->setEnabled(true); 32 stopButton->setEnabled(true);
33 restartButton->setEnabled(true); 33 restartButton->setEnabled(true);
34 } 34 }
35 else{ 35 else{
36 startButton->setEnabled(true); 36 startButton->setEnabled(true);
37 stopButton->setEnabled(false); 37 stopButton->setEnabled(false);
38 restartButton->setEnabled(false); 38 restartButton->setEnabled(false);
39 } 39 }
40 macAddressLabel->setText(interface->getMacAddress()); 40 macAddressLabel->setText(interface->getMacAddress());
41 ipAddressLabel->setText(interface->getIp()); 41 ipAddressLabel->setText(interface->getIp());