aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-08-11 12:33:52 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-08-11 12:33:52 +0900
commit64d096d3f8cdf93216ab138ea0378ae60a19b7d2 (patch)
tree56235e479935124156619059ea553ff659ace452 /lib
parenta1be9751f17041a7f577b04f7545035734a92e22 (diff)
downloadlibquotient-64d096d3f8cdf93216ab138ea0378ae60a19b7d2.tar.gz
libquotient-64d096d3f8cdf93216ab138ea0378ae60a19b7d2.zip
Connection: check for cache_type setting in libQuotient group
The fallback to libQMatrixClient still remains.
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 22db8e3d..56613857 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -111,7 +111,8 @@ public:
bool cacheState = true;
bool cacheToBinary =
- SettingsGroup("libqmatrixclient").value("cache_type").toString()
+ SettingsGroup("libQuotient").get("cache_type",
+ SettingsGroup("libQMatrixClient").get<QString>("cache_type"))
!= "json";
bool lazyLoading = false;