summaryrefslogtreecommitdiff
blob: d18b7e2a16943635e06c0e3a7ed7342838426a14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From a0f8e748159b6bc0b8e5eaa1f9eb58a18ca736fa Mon Sep 17 00:00:00 2001
From: David Edmundson <kde@davidedmundson.co.uk>
Date: Thu, 13 Feb 2020 16:52:40 +0000
Subject: Sync IndexerConfig on exit

Summary:
KCoreConfigSkeleton, unlike KConfig does not automagically save on exit.

BUG: 417127

Test Plan:
balooctl disable
balooctl enable

Subscribers: kde-frameworks-devel, #baloo

Tags: #frameworks, #baloo

Differential Revision: https://phabricator.kde.org/D27376
---
 src/lib/indexerconfig.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/indexerconfig.cpp b/src/lib/indexerconfig.cpp
index 66786b9..19ae342 100644
--- a/src/lib/indexerconfig.cpp
+++ b/src/lib/indexerconfig.cpp
@@ -43,6 +43,7 @@ IndexerConfig::IndexerConfig()
 
 IndexerConfig::~IndexerConfig()
 {
+    d->m_settings.save();
     delete d;
 }
 
-- 
cgit v1.1