def linkClicked(self, tree, explorer, url):
     TreeItem.linkClicked(self,tree, explorer, url)
     if url.toString() == 'kill':
         try:
             self.element.killSeedingTasks()
         except FailedRequestError:
             #TODO:
             return
     try:
         text = self.getDescriptionHtml(tree, explorer)
         self.description.setHtml(text)
     except:
         explorer.setDescriptionWidget()
Esempio n. 2
0
 def linkClicked(self, tree, explorer, url):
     TreeItem.linkClicked(self, tree, explorer, url)
     if url.toString() == 'kill':
         try:
             self.element.killSeedingTasks()
         except FailedRequestError:
             #TODO:
             return
     try:
         text = self.getDescriptionHtml(tree, explorer)
         self.description.setHtml(text)
     except:
         explorer.setDescriptionWidget()
Esempio n. 3
0
 def linkClicked(self, tree, explorer, url):
     if not self.element.isValid:
         self.refreshContent(explorer)
     else:
         TreeItem.linkClicked(self, tree, explorer, url)
 def linkClicked(self, tree, explorer, url):
     if not self.element.isValid:
         self.refreshContent(explorer)
     else:
         TreeItem.linkClicked(self, tree, explorer, url)