Airplane mode should only be marked as enabled if all devices are off

Bug #418323 reported by Scott Kitterman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE Airplane Mode
Fix Released
Undecided
Rich Johnson

Bug Description

I turned bluetooth off and then the U/I gave me the option to disable airplane mode. Enable airplane mode should always disable all devices and should only be marked enabled if all devices are off.

Related branches

Revision history for this message
Rich Johnson (nixternal) wrote :

Thought this was worked out, I guess not. I will go through as this seems an easy enough fix anyways.

Changed in kairmode:
assignee: nobody → Richard Johnson (nixternal)
status: New → Confirmed
Revision history for this message
Rich Johnson (nixternal) wrote :

=== modified file 'kairmode.py'
--- kairmode.py 2009-08-24 19:57:11 +0000
+++ kairmode.py 2009-08-25 03:41:32 +0000
@@ -286,10 +286,13 @@

     #---- Determine if Airplane Mode ----#
     def isAirplaneMode(self):
- status = False
- if self.wifi_device and self.wifi_power == "off": status = True
- if self.bluetooth_device and self.bluetooth_power == "off": status = True
- if self.threeg_device and self.threeg_power == "off": status = True
+ status = True
+ if self.wifi_device and self.wifi_power == "on":
+ status = False
+ if self.bluetooth_device and self.bluetooth_power == "on" and status == True:
+ status = False
+ if self.threeg_device and self.threeg_power == "on" and status == True:
+ status = False
         return status

 ####################

Changed in kairmode:
status: Confirmed → Fix Committed
Rich Johnson (nixternal)
Changed in kairmode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers