This commit is contained in:
Kovid Goyal 2013-03-20 22:51:27 +05:30
commit f1d3e9bc5c
2 changed files with 6 additions and 6 deletions

View File

@ -11,12 +11,11 @@ import re, sys
from functools import partial from functools import partial
from calibre.ebooks.conversion.config import load_defaults from calibre.ebooks.conversion.config import load_defaults
from calibre.gui2 import gprefs, open_url, question_dialog from calibre.gui2 import gprefs, open_url, question_dialog, error_dialog
from calibre.utils.config import JSONConfig from calibre.utils.config import JSONConfig
from calibre.utils.icu import sort_key from calibre.utils.icu import sort_key
from catalog_epub_mobi_ui import Ui_Form from catalog_epub_mobi_ui import Ui_Form
from PyQt4 import QtGui
from PyQt4.Qt import (Qt, QAbstractItemView, QCheckBox, QComboBox, from PyQt4.Qt import (Qt, QAbstractItemView, QCheckBox, QComboBox,
QDoubleSpinBox, QIcon, QInputDialog, QLineEdit, QObject, QRadioButton, QDoubleSpinBox, QIcon, QInputDialog, QLineEdit, QObject, QRadioButton,
QSize, QSizePolicy, QTableWidget, QTableWidgetItem, QTextEdit, QToolButton, QSize, QSizePolicy, QTableWidget, QTableWidgetItem, QTextEdit, QToolButton,
@ -645,6 +644,9 @@ class PluginWidget(QWidget,Ui_Form):
title = options['catalog_title'] title = options['catalog_title']
self.set_format_and_title(format, title) self.set_format_and_title(format, title)
# Reset Descriptions-related enable/disable switches
self.generate_descriptions_changed(self.generate_descriptions.isChecked())
def preset_remove(self): def preset_remove(self):
if self.preset_field.currentIndex() == 0: if self.preset_field.currentIndex() == 0:
return return
@ -740,9 +742,8 @@ class PluginWidget(QWidget,Ui_Form):
preset['merge_comments_rule'] = "%s:%s:%s" % \ preset['merge_comments_rule'] = "%s:%s:%s" % \
(self.merge_source_field_name, checked, include_hr) (self.merge_source_field_name, checked, include_hr)
preset['header_note_source_field'] = self.header_note_source_field_name preset['header_note_source_field'] = unicode(self.header_note_source_field.currentText())
preset['genre_source_field'] = unicode(self.genre_source_field.currentText())
preset['genre_source_field'] = self.genre_source_field_name
# Append the current output profile # Append the current output profile
try: try:

View File

@ -11,7 +11,6 @@ import datetime, os, time
from collections import namedtuple from collections import namedtuple
from calibre import strftime from calibre import strftime
from calibre.constants import config_dir
from calibre.customize import CatalogPlugin from calibre.customize import CatalogPlugin
from calibre.customize.conversion import OptionRecommendation, DummyReporter from calibre.customize.conversion import OptionRecommendation, DummyReporter
from calibre.ebooks import calibre_cover from calibre.ebooks import calibre_cover