def qteAbort(self, msgObj):
        """
        Restore the original cursor position because the user hit abort.
        """
        self.qteWidget.setCursorPosition(*self.cursorPosOrig)
        try:
            self.qteMain.qtesigAbort.disconnect(self.qteAbort)
        except TypeError:
            pass
        try:
            self.qteText.textChanged.disconnect(self.qteTextChanged)
        except TypeError:
            pass
        self.qteWidget.qteSetLexer(self.originalLexer)
Restore the original cursor position because the user hit abort.