mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
macOS: Fix unable to re-arrange entries in the CSV catalog list. Fixes #1850918 [Generate catalog - field re-arrange deletes fields](https://bugs.launchpad.net/calibre/+bug/1850918)
This commit is contained in:
parent
aa6eaca0be
commit
8f3991f877
@ -8,6 +8,7 @@ __docformat__ = 'restructuredtext en'
|
||||
|
||||
from PyQt5.Qt import QWidget, QListWidgetItem, Qt, QVBoxLayout, QLabel, QListWidget
|
||||
|
||||
from calibre.constants import isosx
|
||||
from calibre.gui2 import gprefs
|
||||
from calibre.gui2.ui import get_gui
|
||||
from polyglot.builtins import unicode_type, range
|
||||
@ -52,7 +53,7 @@ class PluginWidget(QWidget):
|
||||
l.addWidget(la)
|
||||
self.db_fields.setDragEnabled(True)
|
||||
self.db_fields.setDragDropMode(QListWidget.InternalMove)
|
||||
self.db_fields.setDefaultDropAction(Qt.MoveAction)
|
||||
self.db_fields.setDefaultDropAction(Qt.CopyAction if isosx else Qt.MoveAction)
|
||||
self.db_fields.setAlternatingRowColors(True)
|
||||
self.db_fields.setObjectName("db_fields")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user