Bug 343895

Summary: KDevelop "Format files" option should ask for confirmation.
Product: [Applications] kdevelop Reporter: Ambroz Bizjak <ambrop7>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: critical CC: rjvbertin, roman.konieczny
Priority: NOR    
Version First Reported In: 4.7.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ambroz Bizjak 2015-02-07 14:31:49 UTC
The "Format files" option in the project explorer is right next to "Find/replace". It is easy to accidentally trigger it, and then there is no confirmation before an automatic modification of all files in the selected folder takes place (and potential data loss).

Reproducible: Always
Comment 1 Sven Brauch 2015-10-11 14:24:23 UTC
Git commit 3785846b75c0182e0d2397a17c89bdb1409c75ce by Sven Brauch.
Committed on 11/10/2015 at 14:24.
Pushed by brauch into branch 'master'.

Ask before formatting a whole folder of files

M  +8    -1    shell/sourceformattercontroller.cpp

http://commits.kde.org/kdevplatform/3785846b75c0182e0d2397a17c89bdb1409c75ce
Comment 2 Sven Brauch 2015-10-11 14:57:46 UTC
*** Bug 339161 has been marked as a duplicate of this bug. ***
Comment 3 Kevin Funk 2017-01-06 09:29:55 UTC
*** Bug 298804 has been marked as a duplicate of this bug. ***