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:
Albert Astals Cid 2016-11-23 11:13:48 +01:00
parent 4c375f75e0
commit 1155ca10f8

View File

@ -2705,6 +2705,7 @@ void QSettings::sync()
{
Q_D(QSettings);
d->sync();
d->pendingChanges = false;
}
/*!