src/eric7/WebBrowser/Download/DownloadManager.py

branch
eric7
changeset 9566
d4986df5d2e4
parent 9482
a2bc06a54d9d
child 9624
b47dfa7a137d
equal deleted inserted replaced
9565:ed264631ab1e 9566:d4986df5d2e4
102 selectedRowsCount = len(self.downloadsView.selectionModel().selectedRows()) 102 selectedRowsCount = len(self.downloadsView.selectionModel().selectedRows())
103 103
104 if selectedRowsCount == 1: 104 if selectedRowsCount == 1:
105 row = self.downloadsView.selectionModel().selectedRows()[0].row() 105 row = self.downloadsView.selectionModel().selectedRows()[0].row()
106 itm = self.__downloads[row] 106 itm = self.__downloads[row]
107 if itm.downloadedSuccessfully(): 107 if itm.exists():
108 menu.addAction( 108 menu.addAction(
109 EricPixmapCache.getIcon("open"), 109 EricPixmapCache.getIcon("open"),
110 self.tr("Open"), 110 self.tr("Open"),
111 self.__contextMenuOpen, 111 self.__contextMenuOpen,
112 ) 112 )
288 """ 288 """
289 Public slot to show the download manager dialog. 289 Public slot to show the download manager dialog.
290 """ 290 """
291 self.__startUpdateTimer() 291 self.__startUpdateTimer()
292 292
293 for itm in self.__downloads:
294 itm.updateButtonsAndLabels()
295
293 super().show() 296 super().show()
294 self.activateWindow() 297 self.activateWindow()
295 self.raise_() 298 self.raise_()
296 299
297 def __addItem(self, itm, append=False): 300 def __addItem(self, itm, append=False):

eric ide

mercurial