tReplace two uses of dialog with self - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 9f0d2f4d21e3725cc2095671f1d88a2cef3c0db4
DIR parent 9c122c469bda27dce617b76a644d007e6ff5be9e
HTML Author: Neil Booth <kyuupichan@gmail.com>
Date: Sat, 9 Jan 2016 00:24:58 +0900
Replace two uses of dialog with self
Diffstat:
M plugins/trezor/qt_generic.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/plugins/trezor/qt_generic.py b/plugins/trezor/qt_generic.py
t@@ -236,7 +236,7 @@ class SettingsDialog(WindowModalDialog):
"You will need to create a new Electrum wallet "
"with the install wizard so that they match.\n\n"
"Are you sure you want to proceed?") % plugin.device
- if not dialog.question(msg, title=title):
+ if not self.question(msg, title=title):
return
get_client().toggle_passphrase()
self.device_manager().close_wallet(wallet) # Unpair
t@@ -275,8 +275,8 @@ class SettingsDialog(WindowModalDialog):
title = _("Confirm Device Wipe")
msg = _("Are you SURE you want to wipe the device?\n"
"Your wallet still has bitcoins in it!")
- if not dialog.question(msg, title=title,
- icon=QMessageBox.Critical):
+ if not self.question(msg, title=title,
+ icon=QMessageBox.Critical):
return
# Note: we use PRESENT so that a user who has forgotten
# their PIN is not prevented from wiping their device