Fixing double page always flagging as modified

This commit is contained in:
Michael Fitzurka 2022-05-23 09:46:46 -04:00 committed by GitHub
parent 710d9bf6a5
commit 09ea531a90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,10 +273,12 @@ class PageListEditor(QtWidgets.QWidget):
cbx = self.sender()
if isinstance(cbx, QtWidgets.QCheckBox) and cbx.isChecked():
page_dict["DoublePage"] = True
if "DoublePage" not in page_dict:
page_dict["DoublePage"] = True
self.modified.emit()
elif "DoublePage" in page_dict:
del page_dict["DoublePage"]
self.modified.emit()
self.modified.emit()
item = self.listWidget.item(row)
# wrap the dict in a tuple to keep from being converted to QStrings