Helpviewer/QtHelpDocumentationDialog.py

branch
maintenance
changeset 6646
51eefa621de4
parent 6645
ad476851d7e0
equal deleted inserted replaced
6603:77189681b787 6646:51eefa621de4
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 2
3 # Copyright (c) 2009 - 2018 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2009 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to manage the QtHelp documentation database. 7 Module implementing a dialog to manage the QtHelp documentation database.
8 """ 8 """
48 try: 48 try:
49 self.__pluginHelpDocuments = \ 49 self.__pluginHelpDocuments = \
50 e5App().getObject("PluginManager").getPluginQtHelpFiles() 50 e5App().getObject("PluginManager").getPluginQtHelpFiles()
51 except KeyError: 51 except KeyError:
52 from PluginManager.PluginManager import PluginManager 52 from PluginManager.PluginManager import PluginManager
53 self.__pluginHelpDocuments = \ 53 pluginManager = PluginManager(self, doLoadPlugins=False)
54 PluginManager(self).getPluginQtHelpFiles() 54 pluginManager.loadDocumentationSetPlugins()
55 pluginManager.activatePlugins()
56 self.__pluginHelpDocuments = pluginManager.getPluginQtHelpFiles()
55 self.addPluginButton.setEnabled(bool(self.__pluginHelpDocuments)) 57 self.addPluginButton.setEnabled(bool(self.__pluginHelpDocuments))
56 58
57 @pyqtSlot() 59 @pyqtSlot()
58 def on_documentsList_itemSelectionChanged(self): 60 def on_documentsList_itemSelectionChanged(self):
59 """ 61 """

eric ide

mercurial