Skip to content

Commit

Permalink
OWDataSet: Remove deprecated processEvents=None
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Oct 10, 2019
1 parent a22b8bf commit e36ec39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Orange/widgets/data/owdatasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,15 +443,15 @@ def commit(self):
# TODO: There are possible pending __progress_advance queued
self.__awaiting_state.pb.advance.disconnect(
self.__progress_advance)
self.progressBarFinished(processEvents=None)
self.progressBarFinished()
self.__awaiting_state = None

if not di.islocal:
pr = progress()
callback = lambda pr=pr: pr.advance.emit()
pr.advance.connect(self.__progress_advance, Qt.QueuedConnection)

self.progressBarInit(processEvents=None)
self.progressBarInit()
self.setStatusMessage("Fetching...")
self.setBlocking(True)

Expand All @@ -478,7 +478,7 @@ def __commit_complete(self, f):
assert self.__awaiting_state.future is f

if self.isBlocking():
self.progressBarFinished(processEvents=None)
self.progressBarFinished()
self.setBlocking(False)
self.setStatusMessage("")

Expand All @@ -500,7 +500,7 @@ def commit_cached(self, file_path):
@Slot()
def __progress_advance(self):
assert QThread.currentThread() is self.thread()
self.progressBarAdvance(1, processEvents=None)
self.progressBarAdvance(1)

def onDeleteWidget(self):
super().onDeleteWidget()
Expand Down

0 comments on commit e36ec39

Please sign in to comment.