QSettings: Avoid unneeded sync() on destruction
... if sync() has already been called manually. Change-Id: I11bd6810aa3c1065a72ffaa2001d1bdbf8bf9c89 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
4c375f75e0
commit
1155ca10f8
@ -2705,6 +2705,7 @@ void QSettings::sync()
|
||||
{
|
||||
Q_D(QSettings);
|
||||
d->sync();
|
||||
d->pendingChanges = false;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user