174 """ |
174 """ |
175 self.dictionariesList.clear() |
175 self.dictionariesList.clear() |
176 self.downloadProgress.setValue(0) |
176 self.downloadProgress.setValue(0) |
177 |
177 |
178 url = self.dictionariesUrlEdit.text() |
178 url = self.dictionariesUrlEdit.text() |
|
179 if Preferences.getWebBrowser("ForceHttpDictionaryDownload"): |
|
180 url = url.replace("https://", "http://") |
179 |
181 |
180 if self.__online: |
182 if self.__online: |
181 self.__refreshButton.setEnabled(False) |
183 self.__refreshButton.setEnabled(False) |
182 self.__installButton.setEnabled(False) |
184 self.__installButton.setEnabled(False) |
183 self.__uninstallButton.setEnabled(False) |
185 self.__uninstallButton.setEnabled(False) |
369 Private slot to download a dictionary. |
371 Private slot to download a dictionary. |
370 """ |
372 """ |
371 if self.__online: |
373 if self.__online: |
372 if self.__dictionariesToDownload: |
374 if self.__dictionariesToDownload: |
373 url = self.__dictionariesToDownload.pop(0) |
375 url = self.__dictionariesToDownload.pop(0) |
|
376 if Preferences.getWebBrowser("ForceHttpDictionaryDownload"): |
|
377 url = url.replace("https://", "http://") |
374 self.statusLabel.setText(url) |
378 self.statusLabel.setText(url) |
375 |
379 |
376 self.__downloadCancelled = False |
380 self.__downloadCancelled = False |
377 |
381 |
378 request = QNetworkRequest(QUrl(url)) |
382 request = QNetworkRequest(QUrl(url)) |