History

Check setting value changed

Atlante45 committed 9 years ago

Commit 56a25df1 parent afdd1f32 files · +4 −1Browse files

Showing the changes to libraries/shared/src/SettingHandle.cpp (1 of 2 files). Show all

Unified · Split

libraries/shared/src/SettingHandle.cpp+3−1
@@ -74,7 +74,9 @@ void Settings::endGroup() { · 73 unmodified lines
7474 }
7575
7676 void Settings::setValue(const QString& name, const QVariant& value) {
77− _manager->setValue(name, value);
77+ if (_manager->value(name) != value) {
78+ _manager->setValue(name, value);
79+ }
7880 }
7981
8082 QVariant Settings::value(const QString& name, const QVariant& defaultValue) const {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t