297 if endName: |
297 if endName: |
298 name += '.' + endName |
298 name += '.' + endName |
299 i += 1 |
299 i += 1 |
300 return name, origName |
300 return name, origName |
301 |
301 |
302 def __open(self): |
|
303 """ |
|
304 Private slot to open the downloaded file. |
|
305 """ |
|
306 info = QFileInfo(self.__output) |
|
307 url = QUrl.fromLocalFile(info.absoluteFilePath()) |
|
308 QDesktopServices.openUrl(url) |
|
309 |
|
310 @pyqtSlot() |
302 @pyqtSlot() |
311 def on_tryAgainButton_clicked(self): |
303 def on_tryAgainButton_clicked(self): |
312 """ |
304 """ |
313 Private slot to retry the download. |
305 Private slot to retry the download. |
314 """ |
306 """ |