src/eric7/WebBrowser/SpellCheck/ManageDictionariesDialog.py

branch
eric7
changeset 9995
00eb2b418f8e
parent 9984
e99fe0e9a1e3
child 10403
ea3320d5e8e9
equal deleted inserted replaced
9994:16ed71ff72bd 9995:00eb2b418f8e
184 """ 184 """
185 self.dictionariesList.clear() 185 self.dictionariesList.clear()
186 self.downloadProgress.setValue(0) 186 self.downloadProgress.setValue(0)
187 187
188 url = self.dictionariesUrlEdit.text() 188 url = self.dictionariesUrlEdit.text()
189 if ( 189 if self.__enforceUnencryptedDownloads or Preferences.getWebBrowser(
190 self.__enforceUnencryptedDownloads 190 "ForceHttpDictionaryDownload"
191 or Preferences.getWebBrowser("ForceHttpDictionaryDownload")
192 ): 191 ):
193 url = url.replace("https://", "http://") 192 url = url.replace("https://", "http://")
194 193
195 if self.__online: 194 if self.__online:
196 self.__refreshButton.setEnabled(False) 195 self.__refreshButton.setEnabled(False)
384 Private slot to download a dictionary. 383 Private slot to download a dictionary.
385 """ 384 """
386 if self.__online: 385 if self.__online:
387 if self.__dictionariesToDownload: 386 if self.__dictionariesToDownload:
388 url = self.__dictionariesToDownload.pop(0) 387 url = self.__dictionariesToDownload.pop(0)
389 if ( 388 if self.__enforceUnencryptedDownloads or Preferences.getWebBrowser(
390 self.__enforceUnencryptedDownloads 389 "ForceHttpDictionaryDownload"
391 or Preferences.getWebBrowser("ForceHttpDictionaryDownload")
392 ): 390 ):
393 url = url.replace("https://", "http://") 391 url = url.replace("https://", "http://")
394 self.statusLabel.setText(url) 392 self.statusLabel.setText(url)
395 393
396 self.__downloadCancelled = False 394 self.__downloadCancelled = False

eric ide

mercurial