180 mimetype = MimeTypes.mimeType(originalFileName) |
180 mimetype = MimeTypes.mimeType(originalFileName) |
181 dlg = DownloadAskActionDialog( |
181 dlg = DownloadAskActionDialog( |
182 pathlib.Path(originalFileName).name, |
182 pathlib.Path(originalFileName).name, |
183 mimetype, |
183 mimetype, |
184 "{0}://{1}".format(url.scheme(), url.authority()), |
184 "{0}://{1}".format(url.scheme(), url.authority()), |
185 self, |
185 parent=self, |
186 ) |
186 ) |
187 |
187 |
188 if dlg.exec() == QDialog.DialogCode.Rejected or dlg.getAction() == "cancel": |
188 if dlg.exec() == QDialog.DialogCode.Rejected or dlg.getAction() == "cancel": |
189 self.progressBar.setVisible(False) |
189 self.progressBar.setVisible(False) |
190 self.on_stopButton_clicked() |
190 self.on_stopButton_clicked() |