Helpviewer/Download/DownloadItem.py

branch
6_0_x
changeset 4329
399e14805a5c
parent 4022
f5f42921717e
child 4421
c6feadf410a4
equal deleted inserted replaced
4328:6420f6f8d9ac 4329:399e14805a5c
195 self.tr("Download canceled: {0}").format( 195 self.tr("Download canceled: {0}").format(
196 QFileInfo(defaultFileName).fileName())) 196 QFileInfo(defaultFileName).fileName()))
197 self.__canceledFileSelect = True 197 self.__canceledFileSelect = True
198 return 198 return
199 199
200 if dlg.getAction() == "scan": 200 ## if dlg.getAction() == "scan":
201 self.__mainWindow.requestVirusTotalScan(url) 201 ## self.__mainWindow.requestVirusTotalScan(url)
202 202 ##
203 self.progressBar.setVisible(False) 203 ## self.progressBar.setVisible(False)
204 self.__reply.close() 204 ## self.__reply.close()
205 self.on_stopButton_clicked() 205 ## self.on_stopButton_clicked()
206 self.filenameLabel.setText( 206 ## self.filenameLabel.setText(
207 self.tr("VirusTotal scan scheduled: {0}").format( 207 ## self.tr("VirusTotal scan scheduled: {0}").format(
208 QFileInfo(defaultFileName).fileName())) 208 ## QFileInfo(defaultFileName).fileName()))
209 self.__canceledFileSelect = True 209 ## self.__canceledFileSelect = True
210 return 210 ## return
211 211 ##
212 self.__autoOpen = dlg.getAction() == "open" 212 self.__autoOpen = dlg.getAction() == "open"
213 if PYQT_VERSION_STR >= "5.0.0": 213 if PYQT_VERSION_STR >= "5.0.0":
214 from PyQt5.QtCore import QStandardPaths 214 from PyQt5.QtCore import QStandardPaths
215 tempLocation = QStandardPaths.storageLocation( 215 tempLocation = QStandardPaths.storageLocation(
216 QStandardPaths.TempLocation) 216 QStandardPaths.TempLocation)

eric ide

mercurial