Bug 488642 - The file modified on disk banner vanishes when the user cancels saving the file
Summary: The file modified on disk banner vanishes when the user cancels saving the file
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-17 22:17 UTC by cwo
Modified: 2024-10-21 23:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cwo 2024-06-17 22:17:08 UTC
SUMMARY

If a file is modified on disk while the user is editing it, Kate provides a helpful banner with common actions to resolve this issue, including reloading options and viewing a diff. If the user attempts to Save or Save As and then cancels on the warning dialog for a file modified on disk, this banner vanishes and will not reappear even if the file changes on disk again.

STEPS TO REPRODUCE

1.  (assuming no directory test exists) mkdir test; cd test; touch test1; kate test1
2.  echo 1 >> test 1
3.  A banner pops up in kate, informing the user that the file was modified on disk.
4. File > Save As, choose test2 as the new name.
5. A warning dialog appears. Press cancel.

OBSERVED RESULT

The dialog closes, and the banner is gone. If the file is modified again, the banner will not reappear until the file is successfully saved.

EXPECTED RESULT

After the dialog closes, the banner should remain, as the issue is not addressed in any way yet. If the user chooses a non-permanent solution (i.e. not Auto-reload), the banner should reappear if the file is modified on disk again.

SOFTWARE/OS VERSIONS

This happens on both Kubuntu 24.04 with Kate 23.08.05 and current Neon Developer with Kate 24.07.70.
Comment 1 Christoph Cullmann 2024-10-21 17:58:59 UTC
Could you retry that with master? I can no longer reproduce that.
Comment 2 Audrey Meyer 2024-10-21 23:36:50 UTC
I can still reproduce this on master.