# HG changeset patch # User souliane # Date 1410126006 -7200 # Node ID 22358ffa26e4e17e50e0aae50643e2e15d33c51c # Parent 19b8af73e94598d1adde768295b58ece3d59c922 browser_side (plugin OTR): really clean everything on key drop diff -r 19b8af73e945 -r 22358ffa26e4 src/browser/sat_browser/plugin_sec_otr.py --- a/src/browser/sat_browser/plugin_sec_otr.py Sun Sep 07 23:29:49 2014 +0200 +++ b/src/browser/sat_browser/plugin_sec_otr.py Sun Sep 07 23:40:06 2014 +0200 @@ -548,8 +548,8 @@ # we end all sessions for context in self.context_manager.contexts.values(): context.disconnect() + self.context_manager.contexts.clear() self.context_manager.account.privkey = None - self.context_manager.account.getPrivkey() # as account.privkey are None, getPrivkey will generate a new key, and save it dialog.InfoDialog(KEY_TITLE, KEY_DROPPED_TXT, AddStyleName="maxWidthLimit").show() dialog.ConfirmDialog(dropKey, KEY_DROP_TXT.format(eol=DIALOG_EOL), KEY_DROP_TITLE, AddStyleName="maxWidthLimit").show()