commit fd651709b82a1c6f9d5c84e7557a91ab9fb6cd1a
parent 2f0f1aafa65cb574e7bcba2d8b221aa0c67fd1e2
Author: ThomasV <thomasv@gitorious>
Date: Wed, 22 Apr 2015 09:56:16 +0200
fix
Diffstat:
2 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -1193,8 +1193,6 @@ class ElectrumWindow(QMainWindow):
self.payment_request = None
return
- self.payto_help.show()
- self.payto_help.set_alt(lambda: self.show_pr_details(pr))
if not pr.has_expired():
self.payto_e.setGreen()
else:
@@ -1261,7 +1259,6 @@ class ElectrumWindow(QMainWindow):
e.setText('')
e.setFrozen(False)
- self.payto_help.set_alt(None)
self.set_pay_from([])
self.update_status()
run_hook('do_clear')
diff --git a/gui/qt/util.py b/gui/qt/util.py
@@ -126,17 +126,10 @@ class HelpButton(QPushButton):
self.help_text = text
self.setFocusPolicy(Qt.NoFocus)
self.setFixedWidth(20)
- self.alt = None
self.clicked.connect(self.onclick)
- def set_alt(self, func):
- self.alt = func
-
def onclick(self):
- if self.alt:
- apply(self.alt)
- else:
- QMessageBox.information(self, 'Help', self.help_text, 'OK')
+ QMessageBox.information(self, 'Help', self.help_text, 'OK')
class Buttons(QHBoxLayout):
def __init__(self, *buttons):