From f4f732b7420ee35a908be2b8dd96c2ee246bbcdd Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sat, 19 Oct 2024 13:58:19 -0700 Subject: [PATCH] Fix accidental re-ordering of pages when pages.image_index is disabled on a metadata type --- comictaggerlib/pagelisteditor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comictaggerlib/pagelisteditor.py b/comictaggerlib/pagelisteditor.py index bd39b4e..25194d5 100644 --- a/comictaggerlib/pagelisteditor.py +++ b/comictaggerlib/pagelisteditor.py @@ -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))