From 18fd27c30b2f6276dcb7494f36714b469a43c47f Mon Sep 17 00:00:00 2001 From: Lionel Chauvin Date: Thu, 3 Feb 2011 00:33:52 +0100 Subject: Save db_opensearch.json in local Reviewed by adjam --- src/opensearch/opensearchmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opensearch/opensearchmanager.cpp b/src/opensearch/opensearchmanager.cpp index eedc8208..f6476afc 100644 --- a/src/opensearch/opensearchmanager.cpp +++ b/src/opensearch/opensearchmanager.cpp @@ -277,7 +277,7 @@ void OpenSearchManager::loadEngines() void OpenSearchManager::saveEngines() { - QFile file(KStandardDirs::locate("appdata", "opensearch/db_opensearch.json")); + QFile file(KStandardDirs::locateLocal("appdata", "opensearch/db_opensearch.json")); if (!file.open(QIODevice::WriteOnly)) { kDebug() << "opensearch db cannot be writen"; @@ -309,7 +309,7 @@ void OpenSearchManager::removeDeletedEngines() service = KService::serviceByDesktopPath(QString("searchproviders/%1.desktop").arg(m_engines.value(url))); if (!service) { - QString path = KStandardDirs::locate("appdata", "opensearch/" + trimmedEngineName(m_engines.value(url)) + ".xml"); + QString path = KStandardDirs::locateLocal("appdata", "opensearch/" + trimmedEngineName(m_engines.value(url)) + ".xml"); QFile::remove(path + trimmedEngineName(m_engines.value(url)) + ".xml"); m_engines.remove(url); } -- cgit v1.2.1