bport created this revision. bport added reviewers: ervin, dfaure, meven, crossi, hchain. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. bport requested review of this revision.
REVISION SUMMARY Fix the following bug, if an entry is set on HOME/.config/kdeglobals and on a specific config file like kcmfonts When you hit restore defaults button and apply, value will be not wrote on the specific file, but then the value is the one from kdeglobals This patch ensure we write the key to the specific configuration file on those case with an empty value. KConfig will take default value automatically TEST PLAN Added a test to ensure flag is working Tested using some KCM to ensure all is working fine REPOSITORY R237 KConfig REVISION DETAIL https://phabricator.kde.org/D28128 AFFECTED FILES autotests/kentrymaptest.cpp autotests/kentrymaptest.h src/core/kconfigdata.cpp src/core/kconfigdata.h src/core/kconfigini.cpp To: bport, ervin, dfaure, meven, crossi, hchain Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns