Diffstat (limited to 'noncore/applets/wirelessapplet/wireless.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/wirelessapplet/wireless.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/applets/wirelessapplet/wireless.cpp b/noncore/applets/wirelessapplet/wireless.cpp index 364f3ad..88ab032 100644 --- a/noncore/applets/wirelessapplet/wireless.cpp +++ b/noncore/applets/wirelessapplet/wireless.cpp | |||
@@ -150,25 +150,25 @@ void WirelessControl::displayStyleChange( int style ) | |||
150 | } | 150 | } |
151 | 151 | ||
152 | void WirelessControl::show ( bool ) | 152 | void WirelessControl::show ( bool ) |
153 | { | 153 | { |
154 | QPoint curPos = applet->mapToGlobal( QPoint ( 0, 0 ) ); | 154 | QPoint curPos = applet->mapToGlobal( QPoint ( 0, 0 ) ); |
155 | 155 | ||
156 | int w = sizeHint().width(); | 156 | int w = sizeHint().width(); |
157 | int x = curPos.x() - ( w / 2 ); | 157 | int x = curPos.x() - ( w / 2 ); |
158 | 158 | ||
159 | if ( ( x + w ) > QPEApplication::desktop() ->width() ) | 159 | if ( ( x + w ) > QPEApplication::desktop() ->width() ) |
160 | x = QPEApplication::desktop ( ) -> width ( ) - w; | 160 | x = QPEApplication::desktop ( ) -> width ( ) - w; |
161 | 161 | ||
162 | move( x, curPos.y () - sizeHint().height () ); | 162 | move( QMAX(x,0), curPos.y () - sizeHint().height () ); |
163 | QFrame::show(); | 163 | QFrame::show(); |
164 | } | 164 | } |
165 | 165 | ||
166 | void WirelessControl::readConfig() | 166 | void WirelessControl::readConfig() |
167 | { | 167 | { |
168 | Config cfg( "qpe" ); | 168 | Config cfg( "qpe" ); |
169 | cfg.setGroup( "Wireless" ); | 169 | cfg.setGroup( "Wireless" ); |
170 | 170 | ||
171 | updateFrequency = cfg.readNumEntry( "UpdateFrequency", 2 ); | 171 | updateFrequency = cfg.readNumEntry( "UpdateFrequency", 2 ); |
172 | rocESSID = cfg.readBoolEntry( "renew_dhcp_on_essid_change", false ); | 172 | rocESSID = cfg.readBoolEntry( "renew_dhcp_on_essid_change", false ); |
173 | rocFREQ = cfg.readBoolEntry( "renew_dhcp_on_freq_change", false ); | 173 | rocFREQ = cfg.readBoolEntry( "renew_dhcp_on_freq_change", false ); |
174 | rocAP = cfg.readBoolEntry( "renew_dhcp_on_ap_change", false ); | 174 | rocAP = cfg.readBoolEntry( "renew_dhcp_on_ap_change", false ); |