From e3765c9a0ac6706b34e856f7a85bb69df9ff487c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 18 Sep 2012 14:29:33 +0530 Subject: [PATCH] ... --- src/calibre/gui2/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index 6527ad3f55..3146436030 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -765,6 +765,8 @@ class Application(QApplication): args = [override_program_name] + args[1:] qargs = [i.encode('utf-8') if isinstance(i, unicode) else i for i in args] self.pi = plugins['progress_indicator'][0] + if DEBUG: + self.redirect_notify = True QApplication.__init__(self, qargs) global gui_thread, qt_app gui_thread = QThread.currentThread() @@ -774,8 +776,6 @@ class Application(QApplication): self._file_open_paths = [] self._file_open_lock = RLock() self.setup_styles(force_calibre_style) - if DEBUG: - self.redirect_notify = True if DEBUG: def notify(self, receiver, event):