summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLionel Chauvin <megabigbug@yahoo.fr>2011-02-03 00:33:52 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-03 00:33:52 +0100
commit18fd27c30b2f6276dcb7494f36714b469a43c47f (patch)
treeefc035b057dd08f7676a42655520a004c1ab1316 /src
parentFix xml parser (diff)
downloadrekonq-18fd27c30b2f6276dcb7494f36714b469a43c47f.tar.xz
Save db_opensearch.json in local
Reviewed by adjam
Diffstat (limited to 'src')
-rw-r--r--src/opensearch/opensearchmanager.cpp4
1 files 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);
}