Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit be827ff

Browse files
committedJun 18, 2017
Make dialog finished signal optional
Signed-off-by: Nir Izraeli <nirizr@gmail.com>
1 parent a617f28 commit be827ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎idaplugin/rematch/actions/base.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,11 @@ def activate(self, ctx):
128128
submit_handler=self.submit_handler,
129129
response_handler=self.response_handler,
130130
exception_handler=self.exception_handler)
131-
if self.finish_handler:
132-
self.ui.finished.connect(self.finish_handler)
133-
self.ui.finished.connect(self.close_dialog)
134-
self.ui.finished.connect(self.force_update)
131+
if hasattr(self.ui, 'finished'):
132+
if self.finish_handler:
133+
self.ui.finished.connect(self.finish_handler)
134+
self.ui.finished.connect(self.close_dialog)
135+
self.ui.finished.connect(self.force_update)
135136
self.ui.show()
136137
else:
137138
log('actions').warn("%s: no activation", self.__class__)

0 commit comments

Comments
 (0)
Please sign in to comment.