commit a45095ef36251d8327e9e3d469b3795e473b85ef
parent a3b4409e6e8d1c510f53494ca068633ce03f0cc7
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 21 Sep 2016 11:28:59 +0200
fix #1934
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -780,7 +780,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
addr = self.wallet.get_unused_address()
if addr is None:
from electrum.wallet import Imported_Wallet
- if isinstance(self.wallet, Imported_Wallet):
+ if not self.wallet.is_deterministic():
self.show_message(_('No more addresses in your wallet.'))
return
if not self.question(_("Warning: The next address will not be recovered automatically if you restore your wallet from seed; you may need to add it manually.\n\nThis occurs because you have too many unused addresses in your wallet. To avoid this situation, use the existing addresses first.\n\nCreate anyway?")):