Skip to content
Snippets Groups Projects
Commit 6770948a authored by inso's avatar inso
Browse files

Disconnect finished signals

parent c1044791
No related branches found
No related tags found
No related merge requests found
...@@ -242,7 +242,7 @@ class CertificationDialog(QObject): ...@@ -242,7 +242,7 @@ class CertificationDialog(QObject):
def async_exec(self): def async_exec(self):
future = asyncio.Future() future = asyncio.Future()
self.widget.finished.connect(lambda r: future.set_result(r)) self.widget.finished.connect(lambda r: future.set_result(r) and self.widget.finished.disconnect())
self.widget.open() self.widget.open()
self.refresh() self.refresh()
return future return future
......
...@@ -218,7 +218,7 @@ class TransferMoneyDialog(QObject): ...@@ -218,7 +218,7 @@ class TransferMoneyDialog(QObject):
def async_exec(self): def async_exec(self):
future = asyncio.Future() future = asyncio.Future()
self.widget.finished.connect(lambda r: future.set_result(r)) self.widget.finished.connect(lambda r: future.set_result(r) and self.widget.finished.disconnect())
self.widget.open() self.widget.open()
return future return future
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment