245 if endName: |
245 if endName: |
246 name += '.' + endName |
246 name += '.' + endName |
247 i += 1 |
247 i += 1 |
248 return name |
248 return name |
249 |
249 |
|
250 def __open(self): |
|
251 """ |
|
252 Private slot to open the downloaded file. |
|
253 """ |
|
254 info = QFileInfo(self.__output) |
|
255 url = QUrl.fromLocalFile(info.absoluteFilePath()) |
|
256 QDesktopServices.openUrl(url) |
|
257 |
250 @pyqtSlot() |
258 @pyqtSlot() |
251 def on_tryAgainButton_clicked(self): |
259 def on_tryAgainButton_clicked(self): |
252 """ |
260 """ |
253 Private slot to retry the download. |
261 Private slot to retry the download. |
254 """ |
262 """ |