X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorealiasmanager.cpp;h=03027ca867e2a01a5ccf7393dfd14b93811eebe3;hp=68c38814e8a1600833a1e69e81631aa98bd5e98e;hb=66c5feaf7c9f480f06dfb45df2cf54e44c8b487b;hpb=f6b9eeda207d42c99fc3e9085631722cf2ec83dc diff --git a/src/core/corealiasmanager.cpp b/src/core/corealiasmanager.cpp index 68c38814..03027ca8 100644 --- a/src/core/corealiasmanager.cpp +++ b/src/core/corealiasmanager.cpp @@ -38,9 +38,12 @@ CoreAliasManager::CoreAliasManager(CoreSession *parent) initSetAliases(Core::getUserSetting(session->user(), "Aliases").toMap()); if(isEmpty()) loadDefaults(); + + // we store our settings whenever they change + connect(this, SIGNAL(updatedRemotely()), SLOT(save())); } -CoreAliasManager::~CoreAliasManager() { +void CoreAliasManager::save() const { CoreSession *session = qobject_cast(parent()); if(!session) { qWarning() << "CoreAliasManager: unable to save Aliases. Parent is not a Coresession!";