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)

This commit is contained in:
Kovid Goyal 2012-11-26 14:36:31 +05:30
parent d29b097216
commit a9ae5619ee

View File

@ -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)