MultiProject/MultiProjectBrowser.py

changeset 6653
ac800d2700d2
parent 6652
dfc89403b426
child 6674
f7b68db81452
equal deleted inserted replaced
6652:dfc89403b426 6653:ac800d2700d2
383 383
384 def __addNewProject(self): 384 def __addNewProject(self):
385 """ 385 """
386 Private method to add a new project entry. 386 Private method to add a new project entry.
387 """ 387 """
388 self.multiProject.addNewProject() 388 itm = self.currentItem()
389 if itm is not None:
390 if itm.parent() is None:
391 # current item is a category item
392 category = itm.text(0)
393 else:
394 category = itm.parent().text(0)
395 else:
396 category = ""
397 self.multiProject.addNewProject(category=category)
389 398
390 def __createPopupMenu(self): 399 def __createPopupMenu(self):
391 """ 400 """
392 Private method to create the popup menu. 401 Private method to create the popup menu.
393 """ 402 """

eric ide

mercurial