* fixed a bug in item archiving preferences window (the notes in sections 2.2.2.2 and 2.2.3.3 in XEP-0136 say when we change OTR to 'require' we must change save value to 'false')
This commit is contained in:
parent
b7f8a3a93d
commit
59e25b92c8
|
@ -47,6 +47,7 @@ forbid
|
|||
oppose
|
||||
prefer
|
||||
require</property>
|
||||
<signal name="changed" handler="on_otr_combobox_changed"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
|
|
|
@ -2894,6 +2894,11 @@ class ItemArchivingPreferencesWindow:
|
|||
return True
|
||||
return False
|
||||
|
||||
def on_otr_combobox_changed(self, widget):
|
||||
otr = self.otr_name[self.otr_combobox.get_active()]
|
||||
if otr == 'require':
|
||||
self.save_combobox.set_active(self.save_index['false'])
|
||||
|
||||
def on_ok_button_clicked(self, widget):
|
||||
# Return directly if operation in progress
|
||||
if self.waiting:
|
||||
|
|
Loading…
Reference in New Issue