Commit a618383d authored by Robert Hoffmann's avatar Robert Hoffmann Committed by Elvis Angelaccio

Fix resetting "View Modes" preferences to defaults

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:
parent ee5736bc
......@@ -232,8 +232,7 @@ void ViewSettingsTab::loadSettings()
ViewModeSettings settings(viewMode());
const ViewModeSettings settings(viewMode());
const QSize iconSize(settings.iconSize(), settings.iconSize());
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment