WebBrowser/Download/DownloadItem.py

changeset 5253
57276f763bf6
parent 5194
4750c83cc718
child 5389
9b1c800daff3
equal deleted inserted replaced
5252:321c2003745d 5253:57276f763bf6
124 if self.__gettingFileName: 124 if self.__gettingFileName:
125 return 125 return
126 126
127 if qVersion() >= "5.7.0": 127 if qVersion() >= "5.7.0":
128 savePage = self.__downloadItem.savePageFormat() != \ 128 savePage = self.__downloadItem.savePageFormat() != \
129 QWebEngineDownloadItem.UnknownSaveFormat 129 QWebEngineDownloadItem.UnknownSaveFormat
130 else: 130 else:
131 savePage = self.__downloadItem.path().lower().endswith( 131 savePage = self.__downloadItem.path().lower().endswith(
132 (".mhtml", ".mht")) 132 (".mhtml", ".mht"))
133 133
134 documentLocation = QStandardPaths.writableLocation( 134 documentLocation = QStandardPaths.writableLocation(

eric ide

mercurial