set gpg_pass_entry as sensitive only if save_gpg_pass is set
This commit is contained in:
parent
95ce17e183
commit
7d587271fb
|
@ -382,10 +382,11 @@ class accountPreference_Window:
|
||||||
if infos.has_key('savegpgpass'):
|
if infos.has_key('savegpgpass'):
|
||||||
self.xml.get_widget('gpg_pass_checkbutton').set_active(\
|
self.xml.get_widget('gpg_pass_checkbutton').set_active(\
|
||||||
infos['savegpgpass'])
|
infos['savegpgpass'])
|
||||||
self.xml.get_widget('gpg_pass_entry').set_sensitive(True)
|
if infos['savegpgpass']:
|
||||||
if infos.has_key('gpgpass'):
|
self.xml.get_widget('gpg_pass_entry').set_sensitive(True)
|
||||||
self.xml.get_widget('gpg_pass_entry').set_text(\
|
if infos.has_key('gpgpass'):
|
||||||
infos['gpgpass'])
|
self.xml.get_widget('gpg_pass_entry').set_text(\
|
||||||
|
infos['gpgpass'])
|
||||||
|
|
||||||
def on_save_clicked(self, widget):
|
def on_save_clicked(self, widget):
|
||||||
"""When save button is clicked : Save informations in config file"""
|
"""When save button is clicked : Save informations in config file"""
|
||||||
|
|
Loading…
Reference in New Issue