From d4474c4ed4a8a2dd48f186fcf7fc8cd5220f7eeb Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 2 Nov 2019 14:05:59 +0100 Subject: [PATCH] Fixes a bug where the insecure credential store could not save credentials. Part of the fix for #1377 --- src/common/Credentials.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/Credentials.cpp b/src/common/Credentials.cpp index 9bc2e6a9c..87abecb98 100644 --- a/src/common/Credentials.cpp +++ b/src/common/Credentials.cpp @@ -200,7 +200,9 @@ void Credentials::set(const QString &provider, const QString &name_, { auto &instance = insecureInstance(); - instance.object()[name] = credential; + auto obj = instance.object(); + obj[name] = credential; + instance.setObject(obj); queueInsecureSave(); }