Diffstat (limited to 'noncore/settings/networksettings2/lancard/lancardrun.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/lancard/lancardrun.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings2/lancard/lancardrun.cpp b/noncore/settings/networksettings2/lancard/lancardrun.cpp index 2e4fc43..1544ddc 100644 --- a/noncore/settings/networksettings2/lancard/lancardrun.cpp +++ b/noncore/settings/networksettings2/lancard/lancardrun.cpp | |||
@@ -64,25 +64,25 @@ void LanCardRun::detectState( NodeCollection * NC ) { | |||
64 | ) { | 64 | ) { |
65 | // proper type, and Not UP -> free | 65 | // proper type, and Not UP -> free |
66 | NC->setCurrentState( Off ); | 66 | NC->setCurrentState( Off ); |
67 | return; | 67 | return; |
68 | } | 68 | } |
69 | } | 69 | } |
70 | // no free found | 70 | // no free found |
71 | 71 | ||
72 | NC->setCurrentState( Unavailable ); | 72 | NC->setCurrentState( Unavailable ); |
73 | 73 | ||
74 | } | 74 | } |
75 | 75 | ||
76 | bool LanCardRun::setState( NodeCollection * NC, Action_t A ) { | 76 | bool LanCardRun::setState( NodeCollection * NC, Action_t A, bool ) { |
77 | 77 | ||
78 | // we only handle activate and deactivate | 78 | // we only handle activate and deactivate |
79 | switch( A ) { | 79 | switch( A ) { |
80 | case Activate : | 80 | case Activate : |
81 | { | 81 | { |
82 | if( NC->currentState() != Off ) { | 82 | if( NC->currentState() != Off ) { |
83 | return 0; | 83 | return 0; |
84 | } | 84 | } |
85 | InterfaceInfo * N = getInterface(); | 85 | InterfaceInfo * N = getInterface(); |
86 | if( ! N ) { | 86 | if( ! N ) { |
87 | // no interface available | 87 | // no interface available |
88 | NC->setCurrentState( Unavailable ); | 88 | NC->setCurrentState( Unavailable ); |