mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
make sure we catch esc in progress handler too
This commit is contained in:
parent
d9a7eba7c2
commit
826cbd3ecf
1 changed files with 3 additions and 0 deletions
|
|
@ -74,6 +74,9 @@ class ProgressManager(object):
|
||||||
class ProgressNoCancel(QProgressDialog):
|
class ProgressNoCancel(QProgressDialog):
|
||||||
def closeEvent(self, evt):
|
def closeEvent(self, evt):
|
||||||
evt.ignore()
|
evt.ignore()
|
||||||
|
def keyPressEvent(self, evt):
|
||||||
|
if evt.key() == Qt.Key_Escape:
|
||||||
|
evt.ignore()
|
||||||
|
|
||||||
def start(self, max=0, min=0, label=None, parent=None, immediate=False):
|
def start(self, max=0, min=0, label=None, parent=None, immediate=False):
|
||||||
self._levels += 1
|
self._levels += 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue