mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Add option to bulk metadata edit to remove stored conversion settings
This commit is contained in:
parent
d5aed1fa22
commit
9263615615
@ -151,6 +151,9 @@ class MetadataBulkDialog(QDialog, Ui_MetadataBulkDialog):
|
|||||||
new_authors = string_to_authors(title)
|
new_authors = string_to_authors(title)
|
||||||
self.db.set_authors(id, new_authors, notify=False)
|
self.db.set_authors(id, new_authors, notify=False)
|
||||||
|
|
||||||
|
if self.remove_conversion_settings.isChecked():
|
||||||
|
self.db.delete_conversion_options(id, 'PIPE')
|
||||||
|
|
||||||
self.changed = True
|
self.changed = True
|
||||||
for w in getattr(self, 'custom_column_widgets', []):
|
for w in getattr(self, 'custom_column_widgets', []):
|
||||||
w.commit(self.ids)
|
w.commit(self.ids)
|
||||||
|
@ -253,7 +253,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="10" column="0" colspan="2">
|
<item row="11" column="0" colspan="2">
|
||||||
<widget class="QCheckBox" name="swap_title_and_author">
|
<widget class="QCheckBox" name="swap_title_and_author">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Swap title and author</string>
|
<string>&Swap title and author</string>
|
||||||
@ -273,6 +273,18 @@ Book A will have series number 1 and Book B series number 2.</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="10" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="remove_conversion_settings">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Remove stored conversion settings for the selected books.
|
||||||
|
|
||||||
|
Future conversion of these books will use the default settings.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Remove &stored conversion settings for the selected books</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="tab">
|
||||||
|
@ -11,8 +11,8 @@ from PyQt4.QtGui import QTableView, QAbstractItemView, QColor, \
|
|||||||
QPainterPath, QLinearGradient, QBrush, \
|
QPainterPath, QLinearGradient, QBrush, \
|
||||||
QPen, QStyle, QPainter, QStyleOptionViewItemV4, \
|
QPen, QStyle, QPainter, QStyleOptionViewItemV4, \
|
||||||
QIcon, QImage, QMenu, QSpinBox, QDoubleSpinBox, \
|
QIcon, QImage, QMenu, QSpinBox, QDoubleSpinBox, \
|
||||||
QStyledItemDelegate, QCompleter, QIntValidator, \
|
QStyledItemDelegate, QCompleter, \
|
||||||
QDoubleValidator, QComboBox
|
QComboBox
|
||||||
from PyQt4.QtCore import QAbstractTableModel, QVariant, Qt, pyqtSignal, \
|
from PyQt4.QtCore import QAbstractTableModel, QVariant, Qt, pyqtSignal, \
|
||||||
SIGNAL, QObject, QSize, QModelIndex, QDate
|
SIGNAL, QObject, QSize, QModelIndex, QDate
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user