Fixing double page always flagging as modified
This commit is contained in:
parent
710d9bf6a5
commit
09ea531a90
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user