X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoredccconfig.cpp;h=80531389b58717e0f6a72869a5e6b8c20b14e9c9;hb=ec747d2e6065e645e2cd768abc84923ef6a19705;hp=806bfcb653f30f7e8b98e3cd482b20e4d14e5645;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf;p=quassel.git diff --git a/src/core/coredccconfig.cpp b/src/core/coredccconfig.cpp index 806bfcb6..80531389 100644 --- a/src/core/coredccconfig.cpp +++ b/src/core/coredccconfig.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -25,7 +25,7 @@ constexpr auto settingsKey = "DccConfig"; -CoreDccConfig::CoreDccConfig(CoreSession *session) +CoreDccConfig::CoreDccConfig(CoreSession* session) : DccConfig(session) , _coreSession{session} { @@ -36,10 +36,9 @@ CoreDccConfig::CoreDccConfig(CoreSession *session) // Otherwise, we just use the defaults initialized in the base class // We store our settings whenever they change - connect(this, SIGNAL(updatedRemotely()), SLOT(save())); + connect(this, &SyncableObject::updatedRemotely, this, &CoreDccConfig::save); } - void CoreDccConfig::save() { Core::setUserSetting(_coreSession->user(), settingsKey, toVariantMap());