commit 81372ffe4bd13c5aff02cbd3b8624f4d58279e2c
parent 41cf7603d87677df2c1023a691b70dcb64c66ffe
Author: ThomasV <electrumdev@gmail.com>
Date: Mon, 30 Mar 2015 19:12:51 +0200
Merge pull request #1114 from romanz/plugin-buttons-fix
plugins: fix buttons insertion
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/audio_modem.py b/plugins/audio_modem.py
@@ -85,7 +85,7 @@ class Plugin(BasePlugin):
self.sender = self._send(parent=dialog, blob=blob)
self.sender.start()
b.clicked.connect(handler)
- dialog.buttons.insertWidget(1, b)
+ dialog.buttons.insert(0, b)
@hook
def scan_text_edit(self, parent):
diff --git a/plugins/greenaddress_instant.py b/plugins/greenaddress_instant.py
@@ -53,7 +53,7 @@ class Plugin(BasePlugin):
self.wallet = d.wallet
self.verify_button = b = QPushButton(self.button_label)
b.clicked.connect(lambda: self.do_verify(d.tx))
- d.buttons.insertWidget(2, b)
+ d.buttons.insert(1, b)
self.transaction_dialog_update(d)
def get_my_addr(self, tx):