src/eric7/WebBrowser/Download/DownloadItem.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9566
d4986df5d2e4
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
147 147
148 def __getFileName(self): 148 def __getFileName(self):
149 """ 149 """
150 Private method to get the file name to save to from the user. 150 Private method to get the file name to save to from the user.
151 """ 151 """
152 from .DownloadAskActionDialog import DownloadAskActionDialog
153
152 if self.__gettingFileName: 154 if self.__gettingFileName:
153 return 155 return
154 156
155 savePage = self.__downloadRequest.isSavePageDownload() 157 savePage = self.__downloadRequest.isSavePageDownload()
156 158
172 self.__originalFileName = originalFileName 174 self.__originalFileName = originalFileName
173 ask = True 175 ask = True
174 self.__autoOpen = False 176 self.__autoOpen = False
175 177
176 if not savePage: 178 if not savePage:
177 from .DownloadAskActionDialog import DownloadAskActionDialog
178
179 url = self.__downloadRequest.url() 179 url = self.__downloadRequest.url()
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,

eric ide

mercurial