tfix #2890 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 401d8bc534cea5838206fea41a4d818f14a0b0e0 DIR parent 8fbabfd79613a832ea092891ff381f57eab1106b HTML Author: ThomasV <thomasv@electrum.org> Date: Tue, 10 Oct 2017 11:48:27 +0200 fix #2890 Diffstat: M gui/qt/main_window.py | 6 +++--- M lib/wallet.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -947,9 +947,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): self.receive_amount_e.setAmount(None) def clear_receive_tab(self): - addr = self.wallet.get_receiving_address() - if addr: - self.receive_address_e.setText(addr) + addr = self.wallet.get_receiving_address() or '' + self.receive_address_e.setText(addr) self.receive_message_e.setText('') self.receive_amount_e.setAmount(None) self.expires_label.hide() t@@ -1599,6 +1598,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): self.wallet.delete_address(addr) self.address_list.update() self.history_list.update() + self.clear_receive_tab() def get_coins(self): if self.pay_from: DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -1375,7 +1375,7 @@ class Imported_Wallet(Abstract_Wallet): return self.is_watching_only() def can_delete_address(self): - return self.is_watching_only() + return True def has_seed(self): return False