mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2628 (.6 no longer combines related html files into a zip when importing html)
This commit is contained in:
parent
0c34dc4870
commit
c627560fac
@ -356,7 +356,7 @@ from calibre.devices.prs505.driver import PRS505
|
||||
from calibre.devices.prs700.driver import PRS700
|
||||
|
||||
|
||||
plugins = []
|
||||
plugins = [HTML2ZIP]
|
||||
plugins += [
|
||||
ComicInput,
|
||||
EPUBInput,
|
||||
|
@ -153,7 +153,7 @@ class PluginModel(QAbstractItemModel):
|
||||
def flags(self, index):
|
||||
if not index.isValid():
|
||||
return 0
|
||||
if index.internalId() == -1:
|
||||
if index.internalId() == 0:
|
||||
return Qt.ItemIsEnabled
|
||||
flags = Qt.ItemIsSelectable | Qt.ItemIsEnabled
|
||||
return flags
|
||||
@ -161,7 +161,7 @@ class PluginModel(QAbstractItemModel):
|
||||
def data(self, index, role):
|
||||
if not index.isValid():
|
||||
return NONE
|
||||
if index.internalId() == -1:
|
||||
if index.internalId() == 0:
|
||||
if role == Qt.DisplayRole:
|
||||
category = self.categories[index.row()]
|
||||
return QVariant(category + _(' plugins'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user