Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[GdalTools] add missed signals (fix #15348)
follow up 9db908c

(cherry picked from commit 572a60b)
  • Loading branch information
alexbruy committed Jul 28, 2016
1 parent a91e20f commit 22a072e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/plugins/GdalTools/tools/doExtractProj.py
Expand Up @@ -23,7 +23,7 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from qgis.PyQt.QtCore import Qt, QCoreApplication, QThread, QMutex
from qgis.PyQt.QtCore import Qt, QCoreApplication, QThread, QMutex, pyqtSignal
from qgis.PyQt.QtWidgets import QDialog, QDialogButtonBox, QApplication, QMessageBox
from qgis.PyQt.QtGui import QCursor

Expand Down Expand Up @@ -184,6 +184,10 @@ def extractProjection(filename, createPrj):

class ExtractThread(QThread):

fileProcessed = pyqtSignal()
processFinished = pyqtSignal()
processInterrupted = pyqtSignal()

def __init__(self, files, needPrj):
QThread.__init__(self, QThread.currentThread())
self.inFiles = files
Expand Down Expand Up @@ -213,7 +217,7 @@ def run(self):
if not interrupted:
self.processFinished.emit()
else:
self.processIterrupted.emit()
self.processInterrupted.emit()

def stop(self):
self.mutex.lock()
Expand Down

0 comments on commit 22a072e

Please sign in to comment.