Rename WorkerThread.quit to WorkerThread._quit to prevent overwriting QThread::quit().
This commit is contained in:
parent
d3c32b82ab
commit
67c4edbe0a
1 changed files with 2 additions and 2 deletions
|
|
@ -61,11 +61,11 @@ class WorkerThread(QThread):
|
|||
def __init__(self, document, quit=False):
|
||||
super().__init__()
|
||||
self.document = document
|
||||
self.quit = quit
|
||||
self._quit = quit
|
||||
|
||||
def run(self):
|
||||
self.document.recognize()
|
||||
if self.quit:
|
||||
if self._quit:
|
||||
qApp.quit()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue