Moved search code into a subfolder

This commit is contained in:
Christophe Dumez 2010-10-22 20:13:22 +00:00
parent 39778baaf5
commit 7ec842929a
44 changed files with 99 additions and 99 deletions

View file

@ -415,7 +415,7 @@ void misc::moveToXDGFolders() {
copyDir(old_BTBackupPath, BTBackupLocation());
}
// Copy search engine folder
const QString old_searchPath = old_qBtPath.absoluteFilePath("search_engine");
const QString old_searchPath = old_qBtPath.absoluteFilePath("nova");
if(QDir(old_searchPath).exists()) {
copyDir(old_searchPath, searchEngineLocation());
}
@ -471,7 +471,7 @@ QPoint misc::screenCenter(QWidget *win) {
QString misc::searchEngineLocation() {
const QString location = QDir::cleanPath(QDesktopServicesDataLocation()
+ QDir::separator() + "search_engine");
+ QDir::separator() + "nova");
QDir locationDir(location);
if(!locationDir.exists())
locationDir.mkpath(locationDir.absolutePath());