mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book: Fix TOC editor window not remembering its last used size
This commit is contained in:
parent
2e893908e3
commit
c1cd424099
@ -64,6 +64,7 @@ class TOCEditor(QDialog):
|
||||
self.stacks.setCurrentIndex(0)
|
||||
elif self.stacks.currentIndex() == 0:
|
||||
self.write_toc()
|
||||
tprefs['toc_editor_window_geom'] = bytearray(self.saveGeometry())
|
||||
super(TOCEditor, self).accept()
|
||||
|
||||
def really_accept(self, tb):
|
||||
@ -72,7 +73,6 @@ class TOCEditor(QDialog):
|
||||
error_dialog(self, _('Failed to write book'),
|
||||
_('Could not write %s. Click "Show details" for'
|
||||
' more information.')%self.book_title, det_msg=tb, show=True)
|
||||
tprefs['toc_editor_window_geom'] = bytearray(self.saveGeometry())
|
||||
super(TOCEditor, self).reject()
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user