| Summary: | If opened file gets deleted and re-created, prompt for deleted file doesn't automatically update | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | php4fan |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | christoph, john.kizer |
| Priority: | NOR | ||
| Version First Reported In: | 25.04.0 | ||
| Target Milestone: | --- | ||
| Platform: | Manjaro | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/ktexteditor/-/commit/6f74166359e2724ec05d2b100e31f9d5dfd218fb | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
php4fan
2025-05-13 13:58:21 UTC
I think as soon as the file is gone we loose the file watcher for it, but I might be wrong. I can reproduce on Kate 25.04.1 - although just to note, the prompt does update if you try to save using the deleted prompt, then decline to potentially overwrite data on disk when warned (the dialog with the "Save Nevertheless" option). Thanks! If somebody has interest to fix that, that is welcome, not sure how to do best, guess one would need to watch the directory, too. Git commit 6f74166359e2724ec05d2b100e31f9d5dfd218fb by Christoph Cullmann. Committed on 01/06/2025 at 16:16. Pushed by cullmann into branch 'master'. trigger refresh of modified on disk message if the type did change e.g. for touch test kate test rm test touch test M +3 -1 src/document/katedocument.cpp https://invent.kde.org/frameworks/ktexteditor/-/commit/6f74166359e2724ec05d2b100e31f9d5dfd218fb Was easier than thought to fix, just a bit too much guarding. |