eric7/Project/ProjectBrowserModel.py

branch
eric7
changeset 8464
9058a129177e
parent 8318
962bce857696
child 8522
4f263b89a293
equal deleted inserted replaced
8463:4a25c872d020 8464:9058a129177e
512 olditem.row(), 0, olditem) 512 olditem.row(), 0, olditem)
513 self.addItem(itm, oldindex) 513 self.addItem(itm, oldindex)
514 else: 514 else:
515 if type_ and type_ not in itm.getProjectTypes(): 515 if type_ and type_ not in itm.getProjectTypes():
516 itm.addProjectType(type_) 516 itm.addProjectType(type_)
517 index = self.createIndex(itm.row(), 0, itm) 517 # TODO: commented out because it causes a crash
518 self.dataChanged.emit(index, index) 518 # in Qt 6.1.2. What does change?
519 ## index = self.createIndex(itm.row(), 0, itm)
520 ## self.dataChanged.emit(index, index)
519 olditem = itm 521 olditem = itm
520 return (itm, pathlist[-1]) 522 return (itm, pathlist[-1])
521 else: 523 else:
522 return (self.rootItem, name) 524 return (self.rootItem, name)
523 525

eric ide

mercurial