Version: unspecified (using KDE 4.7.0) OS: Linux When a file was changed on disk, kate now shows again (did not in 4.6) a message box asking to reload when the file is accessed. When many files changed, File / Reload All comes handy to skip this tedious process. Now in 4.7, after Reload All, a message box is shown for each single changed file (file changed on disk, Reload, Ignore, Cancel?), which contradicts the idea of Reload All. (and with 500 open files, only killing kate helps) Reproducible: Always Steps to Reproduce: Changes many files on disk File -> Reload All Actual Results: One message box for each file Expected Results: No message box at all OS: Linux (x86_64) release 3.0.0-1-desktop Compiler: gcc
Can you please go to Settings > Configure Kate > General settings page. Is [x] Warn about files modified by foreign processes activated? If not, can you activate it and retest? Then you should get one single dialog. Please report back here as soon as possible. Thanks!
Yes, when I activate it I get one single dialog at the time when the files are changed. But I may not want this dialog either. Desired behavior: When activating File -> Reload All, I have explicitly chosen to Reload, that means no dialog is necessary for files changed on disk because I already gave the answer. Of course, a dialog is needed for unsaved changes in the editor. Second problem I just discovered: When files are deleted, there is one message box per deleted file with Reload All as well, even with the above mentioned option enabled. There should be one aggregated error box just as at application startup.
Please report only one issue per report. So the second problem you describe is unrelated here, please don't mix issues.
Ok then, but if you are not aware that the file changed and simply invoke the action reload all, you might lose data. So I propose to let it stay this way. Christoph and other Kate developers?
I see two aspects to consider: 1) If 500 files changed, you will have to answer 500 message boxes, which would need about 20 minutes. So if any dialog, it should be aggregated. This is the "BUG" part here 2) What indication is there to activate Reload All? Either, you want to throw away changes in the editor, or you want to reload files from disk. In the first case, without the slightest doubt, there must be a strong confirmation dialog. In the second case, I argue there need not be a dialog, because I just selected Reload All; but I could accept a concept where I have to confirm. But, as said in point 1, not 500 times. This is the "WISH" part which could by your decision be closed as WONTFIX.
Ok, getting 500 messages boxes is certainly never what you want. Maybe we should make the dialog for all files mandatory, not an option? What do you think?
Re comment #6, seems reasonable to me, FWIW. I see this a lot when switching between git branches since I tend to keep quite a lot of files open in my Kate session.
I have sent a patch for this: https://git.reviewboard.kde.org/r/106383/
Git commit b9c87b449c8965ec0ea8d74d065394bc6a88146f by Dominik Haumann. Committed on 24/10/2012 at 19:03. Pushed by dhaumann into branch 'master'. fix reload all when docs are modified Thanks to Paul Eggleton for the initial patch. REVIEW: 106383 M +8 -2 kate/app/katedocmanager.cpp http://commits.kde.org/kate/b9c87b449c8965ec0ea8d74d065394bc6a88146f