diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/WebBrowser/Download/DownloadAskActionDialog.py --- a/src/eric7/WebBrowser/Download/DownloadAskActionDialog.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/WebBrowser/Download/DownloadAskActionDialog.py Wed Jul 13 14:55:47 2022 +0200 @@ -18,10 +18,11 @@ """ Class implementing a dialog to ask for a download action. """ + def __init__(self, fileName, mimeType, baseUrl, parent=None): """ Constructor - + @param fileName file name (string) @param mimeType mime type (string) @param baseUrl URL (string) @@ -29,24 +30,24 @@ """ super().__init__(parent) self.setupUi(self) - + self.infoLabel.setText("<b>{0}</b>".format(fileName)) self.typeLabel.setText(mimeType) self.siteLabel.setText(baseUrl) - + if ( - not Preferences.getWebBrowser("VirusTotalEnabled") or - Preferences.getWebBrowser("VirusTotalServiceKey") == "" + not Preferences.getWebBrowser("VirusTotalEnabled") + or Preferences.getWebBrowser("VirusTotalServiceKey") == "" ): self.scanButton.setHidden(True) - + msh = self.minimumSizeHint() self.resize(max(self.width(), msh.width()), msh.height()) - + def getAction(self): """ Public method to get the selected action. - + @return selected action ("save", "open", "scan" or "cancel") """ if self.openButton.isChecked():