[Darlan] Set title for ssl error dialogs

This commit is contained in:
Denis Fomin 2013-08-27 23:21:16 +04:00
parent 4e2580d389
commit 69b6673290
2 changed files with 3 additions and 0 deletions

View File

@ -5463,6 +5463,7 @@ class CheckFingerprintDialog(YesNoDialog):
def on_cert_clicked(self, button): def on_cert_clicked(self, button):
d = CertificatDialog(self, self.account, self.cert) d = CertificatDialog(self, self.account, self.cert)
d.set_title(_('Certificate'))
class SSLErrorDialog(ConfirmationDialogDoubleCheck): class SSLErrorDialog(ConfirmationDialogDoubleCheck):
def __init__(self, account, certificate, pritext, sectext, checktext1, def __init__(self, account, certificate, pritext, sectext, checktext1,

View File

@ -1351,6 +1351,8 @@ class Interface:
dialogs.SSLErrorDialog(obj.conn.name, obj.certificate, pritext, dialogs.SSLErrorDialog(obj.conn.name, obj.certificate, pritext,
sectext, checktext1, checktext2, on_response_ok=on_ok, sectext, checktext1, checktext2, on_response_ok=on_ok,
on_response_cancel=on_cancel) on_response_cancel=on_cancel)
self.instances[account]['online_dialog']['ssl_error'].set_title(
_('SSL Certificate Verification'))
def handle_event_fingerprint_error(self, obj): def handle_event_fingerprint_error(self, obj):
# ('FINGERPRINT_ERROR', account, (new_fingerprint,)) # ('FINGERPRINT_ERROR', account, (new_fingerprint,))