def cancel(self):
        """
        Cancels the current lookup.
        """
        if self._running:
            self.interrupt()
            self._running = False
            self._cancelled = True
            self.loadingFinished.emit()
def cancel ( self ) : if self . _running : self . interrupt ( ) self . _running = False self . _cancelled = True self . loadingFinished . emit ( )
Cancels the current lookup.