Fix accidental re-ordering of pages when pages.image_index is disabled on a metadata type

This commit is contained in:
Timmy Welch 2024-10-19 13:58:19 -07:00
parent a8f269aefa
commit f4f732b742

View File

@ -411,3 +411,5 @@ class PageListEditor(QtWidgets.QWidget):
for md_field, widget in self.md_attributes.items():
enable_widget(widget, md_field in enabled_widgets)
self.listWidget.setDragEnabled(not ("pages.image_index" not in enabled_widgets and "pages" in enabled_widgets))