mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #1981135 [Calibre 5.99: X button in Template Functions kills Calibre.](https://bugs.launchpad.net/calibre/+bug/1981135)
This commit is contained in:
parent
445066a381
commit
23b7b7ee5f
@ -355,10 +355,10 @@ class Preferences(QDialog):
|
||||
getattr(self.showing_widget, sig).disconnect(getattr(self, sig))
|
||||
except Exception:
|
||||
pass
|
||||
self.stack.setCurrentIndex(0)
|
||||
self.showing_widget = QWidget(self.scroll_area)
|
||||
self.scroll_area.setWidget(self.showing_widget)
|
||||
self.setWindowTitle(__appname__ + ' - ' + _('Preferences'))
|
||||
self.stack.setCurrentIndex(0)
|
||||
self.title_bar.show_plugin()
|
||||
self.setWindowIcon(QIcon.ic('config.png'))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user