BUGFIX: Fix SOCKS5 proxy authentication in search engine(closes #680072)

This commit is contained in:
Christophe Dumez
2010-11-22 17:04:35 +00:00
parent 52f81a8066
commit 906b0755eb
3 changed files with 6 additions and 3 deletions

View File

@@ -519,9 +519,11 @@ void SearchEngine::updateNova() {
}
filePath = search_dir.absoluteFilePath("socks.py");
if(!QFile::exists(filePath)) {
QFile::copy(":/nova/socks.py", filePath);
if(QFile::exists(filePath)){
misc::safeRemove(filePath);
misc::safeRemove(filePath+"c");
}
QFile::copy(":/nova/socks.py", filePath);
QDir destDir(QDir(misc::searchEngineLocation()).absoluteFilePath("engines"));
QDir shipped_subDir(":/nova/engines/");
QStringList files = shipped_subDir.entryList();