Fix #2628 (.6 no longer combines related html files into a zip when importing html)

This commit is contained in:
Kovid Goyal 2009-06-17 22:24:40 -07:00
parent 0c34dc4870
commit c627560fac
2 changed files with 3 additions and 3 deletions

View File

@ -356,7 +356,7 @@ from calibre.devices.prs505.driver import PRS505
from calibre.devices.prs700.driver import PRS700 from calibre.devices.prs700.driver import PRS700
plugins = [] plugins = [HTML2ZIP]
plugins += [ plugins += [
ComicInput, ComicInput,
EPUBInput, EPUBInput,

View File

@ -153,7 +153,7 @@ class PluginModel(QAbstractItemModel):
def flags(self, index): def flags(self, index):
if not index.isValid(): if not index.isValid():
return 0 return 0
if index.internalId() == -1: if index.internalId() == 0:
return Qt.ItemIsEnabled return Qt.ItemIsEnabled
flags = Qt.ItemIsSelectable | Qt.ItemIsEnabled flags = Qt.ItemIsSelectable | Qt.ItemIsEnabled
return flags return flags
@ -161,7 +161,7 @@ class PluginModel(QAbstractItemModel):
def data(self, index, role): def data(self, index, role):
if not index.isValid(): if not index.isValid():
return NONE return NONE
if index.internalId() == -1: if index.internalId() == 0:
if role == Qt.DisplayRole: if role == Qt.DisplayRole:
category = self.categories[index.row()] category = self.categories[index.row()]
return QVariant(category + _(' plugins')) return QVariant(category + _(' plugins'))