File calibre-no-update.diff of Package calibre

diff -ur calibre.orig/src/calibre/gui2/ui.py calibre/src/calibre/gui2/ui.py
--- calibre.orig/src/calibre/gui2/ui.py	2014-08-08 05:21:35.000000000 +0200
+++ calibre/src/calibre/gui2/ui.py	2014-09-21 16:21:18.382645834 +0200
@@ -884,7 +884,8 @@
         if write_settings:
             self.write_settings()
         self.check_messages_timer.stop()
-        self.update_checker.terminate()
+        if self.update_checker:
+            self.update_checker.terminate()
         self.listener.close()
         self.job_manager.server.close()
         self.job_manager.threaded_server.close()
diff -ur calibre.orig/src/calibre/gui2/update.py calibre/src/calibre/gui2/update.py
--- calibre.orig/src/calibre/gui2/update.py	2014-08-08 05:21:35.000000000 +0200
+++ calibre/src/calibre/gui2/update.py	2014-09-21 16:22:17.724472880 +0200
@@ -136,11 +136,11 @@
 
     def __init__(self, opts):
         self.last_newest_calibre_version = NO_CALIBRE_UPDATE
-        if not opts.no_update_check:
-            self.update_checker = CheckForUpdates(self)
-            self.update_checker.update_found.connect(self.update_found,
-                    type=Qt.QueuedConnection)
-            self.update_checker.start()
+#        if not opts.no_update_check:
+#            self.update_checker = CheckForUpdates(self)
+#            self.update_checker.update_found.connect(self.update_found,
+#                    type=Qt.QueuedConnection)
+#            self.update_checker.start()
 
     def recalc_update_label(self, number_of_plugin_updates):
         self.update_found(self.last_newest_calibre_version, number_of_plugin_updates)
openSUSE Build Service is sponsored by