Skip to content

Commit

Permalink
OWImportDocuments: solve deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed Aug 20, 2020
1 parent 7978442 commit 413e4f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions orangecontrib/text/widgets/owimportdocuments.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,7 @@ def __onReportProgress(self, arg):
assert QThread.currentThread() is self.thread()
if self.__state == State.Processing:
self.pathlabel.setText(prettifypath(arg.lastpath))
self.progress_widget.setValue(arg.progress)
self.progress_widget.setValue(100 * arg.progress)
self.progress_widget.setValue(int(100 * arg.progress))

def commit(self):
"""
Expand Down

0 comments on commit 413e4f2

Please sign in to comment.