prompt user to accept an untrusted keyring (closes #771)
This commit is contained in:
parent
a529ecd521
commit
47232308a9
4 changed files with 40 additions and 13 deletions
|
|
@ -80,6 +80,11 @@ class ProgressDialog(IProgress, QProgressDialog):
|
|||
def error(self, message):
|
||||
QMessageBox.critical(self, self.tr('Error'), '%s' % message, QMessageBox.Ok)
|
||||
|
||||
def prompt(self, message):
|
||||
reply = QMessageBox.question(self, '', unicode(message), QMessageBox.Yes|QMessageBox.No)
|
||||
|
||||
return reply == QMessageBox.Yes
|
||||
|
||||
|
||||
class BackendCfg(QDialog):
|
||||
def __init__(self, weboob, caps=None, parent=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue