summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/networkapplet/networkapplet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/applets/networkapplet/networkapplet.cpp b/noncore/applets/networkapplet/networkapplet.cpp
index 3019456..4e658da 100644
--- a/noncore/applets/networkapplet/networkapplet.cpp
+++ b/noncore/applets/networkapplet/networkapplet.cpp
@@ -134,49 +134,49 @@ void NetworkAppletControl::build()
134 IfaceUpDownButton* tb = new IfaceUpDownButton( this, it.current()->name() ); 134 IfaceUpDownButton* tb = new IfaceUpDownButton( this, it.current()->name() );
135 tb->show(); 135 tb->show();
136 136
137 h->addWidget( tb ); 137 h->addWidget( tb );
138 138
139 ++it; 139 ++it;
140 } 140 }
141} 141}
142 142
143 143
144NetworkAppletControl::~NetworkAppletControl() 144NetworkAppletControl::~NetworkAppletControl()
145{ 145{
146} 146}
147 147
148 148
149QString NetworkAppletControl::guessDevice( ONetworkInterface* iface ) 149QString NetworkAppletControl::guessDevice( ONetworkInterface* iface )
150{ 150{
151 if ( iface->isWireless() ) 151 if ( iface->isWireless() )
152 return "networksettings/wlan"; 152 return "networksettings/wlan";
153 if ( iface->isLoopback() ) 153 if ( iface->isLoopback() )
154 return "networksettings/lo"; 154 return "networksettings/lo";
155 if ( QString( iface->name() ).contains( "usb" ) ) 155 if ( QString( iface->name() ).contains( "usb" ) )
156 return "networksettings/usb"; 156 return "networksettings/usb";
157 if ( QString( iface->name() ).contains( "ir" ) ) 157 if ( QString( iface->name() ).contains( "ir" ) )
158 return "networksettings/ir"; 158 return "networksettings/irda";
159 159
160 //TODO: Insert neat symbol and check for tunnel devices 160 //TODO: Insert neat symbol and check for tunnel devices
161 161
162 return "networksettings/lan"; 162 return "networksettings/lan";
163 163
164} 164}
165 165
166 166
167void NetworkAppletControl::showEvent( QShowEvent* e ) 167void NetworkAppletControl::showEvent( QShowEvent* e )
168{ 168{
169 qDebug( "showEvent" ); 169 qDebug( "showEvent" );
170 build(); 170 build();
171 QWidget::showEvent( e ); 171 QWidget::showEvent( e );
172} 172}
173 173
174 174
175void NetworkAppletControl::hideEvent( QHideEvent* e ) 175void NetworkAppletControl::hideEvent( QHideEvent* e )
176{ 176{
177 qDebug( "hideEvent" ); 177 qDebug( "hideEvent" );
178 QWidget::hideEvent( e ); 178 QWidget::hideEvent( e );
179 179
180 delete l; 180 delete l;
181 181
182 // delete all child widgets from this frame 182 // delete all child widgets from this frame