aboutsummaryrefslogtreecommitdiff
path: root/lib/accountregistry.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2022-05-31 00:08:48 +0200
committerTobias Fella <fella@posteo.de>2022-05-31 00:08:48 +0200
commit05067556a295dc5e01a97a54c625a1776611c8dd (patch)
tree9e66172314bd21b240c86b5d6dfc8fc71c325b64 /lib/accountregistry.cpp
parent6e27a49fbbc58a7310753f882fe372ddb0f63e33 (diff)
downloadlibquotient-05067556a295dc5e01a97a54c625a1776611c8dd.tar.gz
libquotient-05067556a295dc5e01a97a54c625a1776611c8dd.zip
Save connection state when destructing accountregistry
Diffstat (limited to 'lib/accountregistry.cpp')
-rw-r--r--lib/accountregistry.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/accountregistry.cpp b/lib/accountregistry.cpp
index b40d5ecf..ab8c46e3 100644
--- a/lib/accountregistry.cpp
+++ b/lib/accountregistry.cpp
@@ -125,3 +125,10 @@ QStringList AccountRegistry::accountsLoading() const
{
return m_accountsLoading;
}
+
+AccountRegistry::~AccountRegistry()
+{
+ for (const auto& connection : *this) {
+ connection->saveState();
+ }
+}