Skip to content

Commit

Permalink
close the progressdialog
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Sep 24, 2024
1 parent 254664a commit 4754e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/asammdf/gui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def run_thread_with_progress(
self.close_on_finish = close_on_finish
self.hide_on_finish = hide_on_finish

self.thread = QWorkerThread(target, parent=self, *args, **kwargs)
self.thread = QWorkerThread(target, *args, parent=self, **kwargs)
self.thread.result.connect(self.receive_result)
self.thread.finished.connect(self.thread_complete)
self.thread.error.connect(self.receive_error)
Expand Down Expand Up @@ -375,7 +375,7 @@ def thread_complete(self):
self.thread = None

if self.close_on_finish:
QtCore.QTimer.singleShot(50, self.accept)
QtCore.QTimer.singleShot(50, self.close)

def close(self, reject=False):

Expand Down

0 comments on commit 4754e14

Please sign in to comment.