]> cloud.milkyroute.net Git - dolphin.git/commit
Fix resetting "View Modes" preferences to defaults
authorRobert Hoffmann <externer.dl.hoffmann@muenchen.de>
Tue, 13 Feb 2018 22:12:44 +0000 (23:12 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Tue, 13 Feb 2018 22:12:44 +0000 (23:12 +0100)
commita618383df3840d85dcd7e4ff62dc2ed02f55b0b7
tree14ecdfb04797fb2ea4508ef9a8ee755a15abd71a
parentee5736bc06358def78736331600744179ae9e72d
Fix resetting "View Modes" preferences to defaults

Summary:
Removed call to settings.readConfig() in ViewSettingsTab::loadSettings(),
because it overwrites default settings with user settings even if called
from ViewSettingsTab::restoreDefaultSettings().

Test Plan:
Settings -> Configure Dolphin -> View Modes:
Choose "Custom Font", "Choose...": other font settings than preselected;
alter "Icon Size" slider positions;
click OK; OK;
note modified text font next to icons, icon sizes

Settings -> Configure Dolphin -> View Modes:
Click "Defaults"
check "Font" is reset to "System Font";
check "Icon Size" slider positions are reset to default positions;
click OK
check text font next to icons, icon sizes are reset to defaults

Subscribers: ltoscano, ngraham, elvisangelaccio, michaelh, #dolphin

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D10190
src/settings/viewmodes/viewsettingstab.cpp