diff --git a/client/gui_qt.py b/client/gui_qt.py index b5584e0aa..ed58626dc 100644 --- a/client/gui_qt.py +++ b/client/gui_qt.py @@ -536,6 +536,7 @@ class ElectrumWindow(QMainWindow): addButton = EnterButton("New", self.newaddress_dialog) hbox.addWidget(addButton) def payto(addr): + if not addr:return self.tabs.setCurrentIndex(1) self.payto_e.setText(addr) self.amount_e.setFocus()