Bug 396064

Summary: Restore defaults button resets to the previous saved setting and not the actual default settings
Product: [Applications] krita Reporter: Antti Savolainen <antti.savo>
Component: Shortcuts and Canvas Input SettingsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: 1012468643, halla, tamtamy.tymona
Priority: NOR    
Version: 4.1.0 beta   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Antti Savolainen 2018-07-01 19:43:06 UTC
Video visualization: https://youtu.be/Z5ODitlqHU0

Steps to reproduce:
Open settings
Select 'Canvas Input Settings'
Open 'Show Popup Palette' (I haven't tested any other setting)
Add a shortcut and save
Go back to that setting and Restore Defaults
Delete the new binding and try Restore Defaults again

Expected behavior: Only Right button should be left in the binding

Actual behavior: The last saved setting gets restored

Build & Platform:
    krita 4.2.0-pre-alpha
    Xubuntu 17.10
Comment 1 Tiar 2020-11-19 16:02:42 UTC
Note for a developer: see that there is also an option to reset configuration from Settings -> Reset Krita Configurations . I think it would be good to just rename this one as "Restore Previous"? (Reset Krita Configurations does something that might not be visible from the dialog, because it also resets the workspace etc.).
Comment 2 sh_zam 2022-04-04 08:32:38 UTC
Git commit c14d3bbdc2301c24ccf74186f654172ff40dc26a by Sharaf Zaman.
Committed on 04/04/2022 at 08:32.
Pushed by szaman into branch 'master'.

Bugfix: Restore Defaults doesn't work properly in Canvas Input Settings

Reason of the bug being, profileDir.entryList() returned an empty list.

M  +1    -1    libs/ui/input/config/kis_input_configuration_page.cpp

https://invent.kde.org/graphics/krita/commit/c14d3bbdc2301c24ccf74186f654172ff40dc26a
Comment 3 sh_zam 2022-04-11 09:11:37 UTC
Git commit f5bf73f98491fb01949b09285a54b92c05b93059 by Sharaf Zaman.
Committed on 11/04/2022 at 09:11.
Pushed by szaman into branch 'krita/5.0'.

Bugfix: Restore Defaults doesn't work properly in Canvas Input Settings

Reason of the bug being, profileDir.entryList() returned an empty list.
(cherry picked from commit c14d3bbdc2301c24ccf74186f654172ff40dc26a)

M  +1    -1    libs/ui/input/config/kis_input_configuration_page.cpp

https://invent.kde.org/graphics/krita/commit/f5bf73f98491fb01949b09285a54b92c05b93059
Comment 4 Eranthis stellata Maxim 2022-04-28 15:25:55 UTC
*** Bug 450483 has been marked as a duplicate of this bug. ***