From a9ae5619ee450e72d97a6ca2a29ae73e0258941f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 26 Nov 2012 14:36:31 +0530 Subject: [PATCH] Fix calibre quitting when minimized to system tray and an update available message is shown and then closed. Fixes #1082630 (Calibre exits when minimised after checking for update) --- src/calibre/gui2/update.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/update.py b/src/calibre/gui2/update.py index 0b685e2fd2..2a155547e6 100644 --- a/src/calibre/gui2/update.py +++ b/src/calibre/gui2/update.py @@ -67,6 +67,7 @@ class UpdateNotification(QDialog): def __init__(self, calibre_version, plugin_updates, parent=None): QDialog.__init__(self, parent) + self.setAttribute(Qt.WA_QuitOnClose, False) self.resize(400, 250) self.l = QGridLayout() self.setLayout(self.l)