From 866a489eb220f978cc55342c907b857eb7f9837f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 31 May 2012 14:07:12 +0530 Subject: [PATCH] ... --- src/calibre/gui2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index 4f0463417b..30588a8866 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -719,9 +719,9 @@ qt_app = None class Application(QApplication): def __init__(self, args): + self.file_event_hook = None qargs = [i.encode('utf-8') if isinstance(i, unicode) else i for i in args] QApplication.__init__(self, qargs) - self.file_event_hook = None global gui_thread, qt_app gui_thread = QThread.currentThread() self._translator = None