commit 66c652eb5191a5d2eb87a0ff9ce82cb03565f3b0
parent fb75e2e53d516e96840abc83dbba85a7807ebb8e
Author: ThomasV <thomasv@gitorious>
Date: Tue, 4 Nov 2014 16:23:11 +0100
fixes for plugin integration
Diffstat:
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -1274,7 +1274,7 @@ class ElectrumWindow(QMainWindow):
self.payto_help.set_alt(None)
self.set_pay_from([])
self.update_status()
-
+ run_hook('do_clear')
def set_addrs_frozen(self,addrs,freeze):
@@ -2723,7 +2723,7 @@ class ElectrumWindow(QMainWindow):
def plugins_dialog(self):
from electrum.plugins import plugins
- d = QDialog(self)
+ self.pluginsdialog = d = QDialog(self)
d.setWindowTitle(_('Electrum Plugins'))
d.setModal(1)
@@ -2774,15 +2774,12 @@ class ElectrumWindow(QMainWindow):
cb.clicked.connect(mk_toggle(cb,p,w))
grid.addWidget(HelpButton(p.description()), i, 2)
except Exception:
- print_msg(_("Error: cannot display plugin"), p)
+ print_msg("Error: cannot display plugin", p)
traceback.print_exc(file=sys.stdout)
grid.setRowStretch(i+1,1)
-
vbox.addLayout(close_button(d))
-
d.exec_()
-
def show_account_details(self, k):
account = self.wallet.accounts[k]