commit 2afa6b5f36327412b6b9db8218240a37ec0c1cdc
parent d7344edd6b80b101e06f12fca79711ef52a04585
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 28 May 2016 00:04:06 +0200
add missing import
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -800,6 +800,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
def new_payment_request(self):
addr = self.wallet.get_unused_address(self.current_account)
if addr is None:
+ from electrum.wallet import Imported_Wallet
if isinstance(self.wallet, Imported_Wallet):
self.show_message(_('No more addresses in your wallet.'))
return