* 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
|
oppose
|
||||||
prefer
|
prefer
|
||||||
require</property>
|
require</property>
|
||||||
|
<signal name="changed" handler="on_otr_combobox_changed"/>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">1</property>
|
<property name="left_attach">1</property>
|
||||||
|
|
|
@ -2894,6 +2894,11 @@ class ItemArchivingPreferencesWindow:
|
||||||
return True
|
return True
|
||||||
return False
|
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):
|
def on_ok_button_clicked(self, widget):
|
||||||
# Return directly if operation in progress
|
# Return directly if operation in progress
|
||||||
if self.waiting:
|
if self.waiting:
|
||||||
|
|
Loading…
Reference in New Issue