Summary: | Target file content not changed when saving another file as that file to replace it. | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | CnZhx <zhx> |
Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | zhx |
Priority: | NOR | ||
Version: | 16.08 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/ktexteditor/db714d744fba689673a02d85dfbe168e8fbd4e2d | Version Fixed In: |
Description
CnZhx
2016-09-02 09:57:54 UTC
It seems this is by design, that is: If you open in the Menu: Settings > Configure Kate > General, and then "[x] Warn about files modified by foreign processes", then you'll get a warning everytime the file is changed. Can you confirm? Hi Dominik, I confirm that this option has been enabled. When I open "file2" then choose "save a copy as .." to override "file1", Kate warns about the overwrite but does not warn about change made to "file1". Actually, the problem is not the warning message but the content of "file1" (the targe file that was overwritten with the content from "file2") is NOT changed. Should we expect the target file content to be changed to the content of the file used to overwrite to the target file? This problem still exists in 16.08.2. There would be no error if using "Save As..." instead of "Save Copy As..." from "File" in the menu bar. Git commit db714d744fba689673a02d85dfbe168e8fbd4e2d by Christoph Cullmann. Committed on 24/07/2017 at 09:53. Pushed by cullmann into branch 'master'. fix save as copy, it missed to allow overwriting the destination file we check if we want that via a dialog, but we still always fail to do so M +2 -2 src/document/katedocument.cpp https://commits.kde.org/ktexteditor/db714d744fba689673a02d85dfbe168e8fbd4e2d (In reply to Christoph Cullmann from comment #4) Thanks Christoph for this fix. Hopefully this will enter the repository soon. |