Rename WorkerThread.quit to WorkerThread._quit to prevent overwriting QThread::quit().

This commit is contained in:
Andrey Golovizin 2014-09-12 12:44:47 +02:00
parent d3c32b82ab
commit 67c4edbe0a

View file

@ -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()