diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-31 16:22:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 16:22:50 +0200 |
commit | 49b0d191ab8917c61b28da3cfeaf1d28c143d5c8 (patch) | |
tree | 7a58e088a12e4f0dd1667c71b27d3bd27db271c2 /lib/accountregistry.cpp | |
parent | a7c43995c3a47bbbac8d862f69f9229eb39f4ed6 (diff) | |
parent | 05067556a295dc5e01a97a54c625a1776611c8dd (diff) | |
download | libquotient-49b0d191ab8917c61b28da3cfeaf1d28c143d5c8.tar.gz libquotient-49b0d191ab8917c61b28da3cfeaf1d28c143d5c8.zip |
#558: Save connection state when destructing accountregistry
Diffstat (limited to 'lib/accountregistry.cpp')
-rw-r--r-- | lib/accountregistry.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/accountregistry.cpp b/lib/accountregistry.cpp index b3025fa4..f25369d6 100644 --- a/lib/accountregistry.cpp +++ b/lib/accountregistry.cpp @@ -126,3 +126,10 @@ QStringList AccountRegistry::accountsLoading() const { return m_accountsLoading; } + +AccountRegistry::~AccountRegistry() +{ + for (const auto& connection : *this) { + connection->saveState(); + } +} |