src/eric7/QtHelpInterface/QtHelpDocumentationSelectionDialog.py

branch
eric7
changeset 10403
ea3320d5e8e9
parent 9686
2eee7a645cba
child 10439
21c28b0f9e41
equal deleted inserted replaced
10402:1b63ffeca110 10403:ea3320d5e8e9
160 160
161 @param category reference to the category item 161 @param category reference to the category item
162 @type QTreeWidgetItem 162 @type QTreeWidgetItem
163 """ 163 """
164 categoryDir = category.data(0, Qt.ItemDataRole.UserRole) 164 categoryDir = category.data(0, Qt.ItemDataRole.UserRole)
165 shutil.rmtree(categoryDir, True) 165 shutil.rmtree(categoryDir, ignore_errors=True)
166 166
167 self.documentationList.takeTopLevelItem( 167 self.documentationList.takeTopLevelItem(
168 self.documentationList.indexOfTopLevelItem(category) 168 self.documentationList.indexOfTopLevelItem(category)
169 ) 169 )
170 del category 170 del category

eric ide

mercurial