guard some options against setting it twice
author Dominik Haumann
()
committer Dominik Haumann
()
commit 256f7654bd7a1dd20c60558307511b4be1c090bd
tree 875821ba4fd003379569b2470700074e22c97cca
parent a74c0c31ffc62842df849dec53b3b5d6af11ae12
guard some options against setting it twice

Setting an option that already is the correct value
should not emit configChanged(). So all setters should
have the form:
if (!m_optionSet || m_option != option) {
configStart();
m_optionSet = true;
m_option = option;
configEnd();
}
This should be done for all setters in KateConfig. Then,
potentially lots of unnecessary config-changed signals could be
suppressed. Any volunteers?

CCMAIL: kwrite-devel@kde.org
part/utils/kateconfig.cpp