]> cloud.milkyroute.net Git - dolphin.git/commit
ViewPropertiesDialog: disable Apply button on startup
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Wed, 13 Jun 2018 21:16:33 +0000 (23:16 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Wed, 13 Jun 2018 21:16:33 +0000 (23:16 +0200)
commit32b8b19ba556a5429e9b70e7d2cac9e468faf08a
tree477433c54a55238424e47e24214940c82d1188cd
parent615838083dfe7ff6845069cc18a88d38be56a478
ViewPropertiesDialog: disable Apply button on startup

We call `markAsDirty(false)` at the end of `loadSettings()` but that's
not enough, because `m_isDirty` is initialized to false (as it should be).
This means `isDirtyChanged` is not emitted and the button is not disabled.

By disabling it explicitly, we make it consistent with the Apply button
in the settings dialog (which is also initially disabled).
src/settings/viewpropertiesdialog.cpp