Settings update: Fix git_local_only loading

Thanks to the unittesting.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-08-28 20:20:53 -03:00 committed by Dirk Hohndel
parent 3dce5de12d
commit 1b07483830
2 changed files with 13 additions and 0 deletions

View file

@ -1111,6 +1111,9 @@ void CloudStorageSettings::setGitLocalOnly(bool value)
{
if (value == prefs.git_local_only)
return;
QSettings s;
s.beginGroup("CloudStorage");
s.setValue("git_local_only", value);
prefs.git_local_only = value;
emit gitLocalOnlyChanged(value);
}