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( |