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):
|
def __init__(self, document, quit=False):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.document = document
|
self.document = document
|
||||||
self.quit = quit
|
self._quit = quit
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.document.recognize()
|
self.document.recognize()
|
||||||
if self.quit:
|
if self._quit:
|
||||||
qApp.quit()
|
qApp.quit()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue