ttrezor: fix wipe_device - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 6d33e1a35b0628ac15a7ddcc1838d8f0dec4b2d4 DIR parent adf7e250ca493c1ce5a0de8f955e59bd453b3902 HTML Author: ThomasV <thomasv@electrum.org> Date: Fri, 6 Jan 2017 22:32:06 +0100 ttrezor: fix wipe_device Diffstat: M plugins/trezor/qt_generic.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- DIR diff --git a/plugins/trezor/qt_generic.py b/plugins/trezor/qt_generic.py t@@ -401,6 +401,7 @@ class SettingsDialog(WindowModalDialog): invoke_client('set_pin', remove=True) def wipe_device(): + wallet = window.wallet if wallet and sum(wallet.get_balance()): title = _("Confirm Device Wipe") msg = _("Are you SURE you want to wipe the device?\n"