Commit ee7badd0 authored by Dan Pascu's avatar Dan Pascu

Reverted explicit type casting

parent fc92caf1
......@@ -300,17 +300,17 @@ class MainWindow(base_class, ui_class):
def _AH_AudioAlertDeviceChanged(self, action):
settings = SIPSimpleSettings()
settings.audio.alert_device = unicode(action.data().toPyObject())
settings.audio.alert_device = action.data().toPyObject()
settings.save()
def _AH_AudioInputDeviceChanged(self, action):
settings = SIPSimpleSettings()
settings.audio.input_device = unicode(action.data().toPyObject())
settings.audio.input_device = action.data().toPyObject()
settings.save()
def _AH_AudioOutputDeviceChanged(self, action):
settings = SIPSimpleSettings()
settings.audio.output_device = unicode(action.data().toPyObject())
settings.audio.output_device = action.data().toPyObject()
settings.save()
def _AH_AutoAcceptChatTriggered(self, checked):
......
......@@ -1007,19 +1007,19 @@ class PreferencesWindow(base_class, ui_class):
# Audio devices signal handlers
def _SH_AudioAlertDeviceButtonActivated(self, index):
device = unicode(self.audio_alert_device_button.itemData(index).toPyObject())
device = self.audio_alert_device_button.itemData(index).toPyObject()
settings = SIPSimpleSettings()
settings.audio.alert_device = device
settings.save()
def _SH_AudioInputDeviceButtonActivated(self, index):
device = unicode(self.audio_input_device_button.itemData(index).toPyObject())
device = self.audio_input_device_button.itemData(index).toPyObject()
settings = SIPSimpleSettings()
settings.audio.input_device = device
settings.save()
def _SH_AudioOutputDeviceButtonActivated(self, index):
device = unicode(self.audio_output_device_button.itemData(index).toPyObject())
device = self.audio_output_device_button.itemData(index).toPyObject()
settings = SIPSimpleSettings()
settings.audio.output_device = device
settings.save()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment