diff --git a/src/calibre/gui2/tweak_book/job.py b/src/calibre/gui2/tweak_book/job.py index 4dd2a6946d..5c5b277725 100644 --- a/src/calibre/gui2/tweak_book/job.py +++ b/src/calibre/gui2/tweak_book/job.py @@ -10,7 +10,7 @@ import time from threading import Thread from functools import partial -from PyQt4.Qt import (QWidget, QVBoxLayout, QLabel, Qt, QPainter, QBrush, QRect) +from PyQt4.Qt import (QWidget, QVBoxLayout, QLabel, Qt, QPainter, QBrush, QRect, QApplication, QCursor) from calibre.gui2 import Dispatcher from calibre.gui2.progress_indicator import ProgressIndicator @@ -65,8 +65,10 @@ class BlockingJob(QWidget): self.raise_() self.setFocus(Qt.OtherFocusReason) self.pi.startAnimation() + QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) def stop(self): + QApplication.restoreOverrideCursor() self.pi.stopAnimation() self.setVisible(False) self.parent().setEnabled(True)