From e60de62e89045ccb753437dc39eb9eef34c1f6b1 Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Thu, 24 Sep 2015 19:46:11 +0200 Subject: [PATCH] Fix contextual actions in wot tab --- src/cutecoin/gui/wot_tab.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cutecoin/gui/wot_tab.py b/src/cutecoin/gui/wot_tab.py index a2eab791..d01f74ac 100644 --- a/src/cutecoin/gui/wot_tab.py +++ b/src/cutecoin/gui/wot_tab.py @@ -297,6 +297,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): dialog = MemberDialog(self.app, self.account, self.community, identity) dialog.exec_() + @asyncify + @asyncio.coroutine def sign_node(self, metadata): identity = self.app.identities_registry.from_handled_data( metadata['text'], @@ -304,9 +306,11 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): BlockchainState.VALIDATED, self.community ) - CertificationDialog.certify_identity(self.app, self.account, self.password_asker, + yield from CertificationDialog.certify_identity(self.app, self.account, self.password_asker, self.community, identity) + @asyncify + @asyncio.coroutine def send_money_to_node(self, metadata): identity = self.app.identities_registry.from_handled_data( metadata['text'], @@ -314,7 +318,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): BlockchainState.VALIDATED, self.community ) - result = TransferMoneyDialog.send_money_to_identity(self.app, self.account, self.password_asker, + result = yield from TransferMoneyDialog.send_money_to_identity(self.app, self.account, self.password_asker, self.community, identity) if result == QDialog.Accepted: currency_tab = self.window().currencies_tabwidget.currentWidget() -- GitLab