This commit is contained in:
Kovid Goyal 2022-04-18 16:48:21 +05:30
parent d199ae270b
commit 55dc6a7b7c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -335,7 +335,7 @@ class ItemView(QStackedWidget): # {{{
l.addWidget(s.bb) l.addWidget(s.bb)
d = D(self) d = D(self)
if d.exec_() == QDialog.DialogCode.Accepted: if d.exec() == QDialog.DialogCode.Accepted:
self.create_from_xpath.emit(xpaths, d.remove_duplicates_cb.isChecked(), d.prefer_title_cb.isChecked()) self.create_from_xpath.emit(xpaths, d.remove_duplicates_cb.isChecked(), d.prefer_title_cb.isChecked())
self.prefs.set('toc_from_headings_remove_duplicates', d.remove_duplicates_cb.isChecked()) self.prefs.set('toc_from_headings_remove_duplicates', d.remove_duplicates_cb.isChecked())
self.prefs.set('toc_from_headings_prefer_title', d.prefer_title_cb.isChecked()) self.prefs.set('toc_from_headings_prefer_title', d.prefer_title_cb.isChecked())