revealer: warning re version 0 now includes URL

This commit is contained in:
SomberNight 2018-12-20 04:21:40 +01:00
parent f0868f5a51
commit caae9f8a6a
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9
2 changed files with 9 additions and 5 deletions

View file

@ -216,7 +216,7 @@ class MessageBoxMixin(object):
d = QMessageBox(icon, title, str(text), buttons, parent)
d.setWindowModality(Qt.WindowModal)
d.setDefaultButton(defaultButton)
d.setTextInteractionFlags(Qt.TextSelectableByMouse)
d.setTextInteractionFlags(Qt.TextSelectableByMouse | Qt.LinksAccessibleByMouse)
return d.exec_()
class WindowModalDialog(QDialog, MessageBoxMixin):

View file

@ -201,10 +201,14 @@ class Plugin(RevealerPlugin):
def warn_old_revealer(self):
if self.versioned_seed.version == '0':
self.d.show_warning(''.join(
["<b>", _("Warning"), ": </b>",
_("Revealers starting with 0 are not secure due to a vulnerability."), ' ',
_("Proceed at your own risk.")]))
link = "https://revealer.cc/revealer-warning-and-upgrade/"
self.d.show_warning(("<b>{warning}: </b>{ver0}<br>"
"{url}<br>"
"{risk}")
.format(warning=_("Warning"),
ver0=_("Revealers starting with 0 are not secure due to a vulnerability."),
url=_("More info at: {}").format(f'<a href="{link}">{link}</a>'),
risk=_("Proceed at your own risk.")))
def cypherseed_dialog(self, window):
self.warn_old_revealer()