Version: unspecified (using Devel) OS: Linux If a file is in read-only mode and you search&replace a word that is present in the file, kate feedbacks as if the words were successfully replaced. Reproducible: Always Steps to Reproduce: Go in read only mode in a file, search&replace for a word present in the file, Expected Results: Kate should instead warn somewhere that the file is in read-only mode and that it cannot replace strings.
Thanks for the report. The change is not written to file until the user explicitly saves the document and at moment (s)he will be notified, but it would be nice to get a warning before that.... Unfortunately I don't think we can add it to KDE 4.8 as that would add a new translated string. But it is definitely on my TODO for 4.9
Git commit 34e29765afd8fa6ee3a4566a5e88a599279035e0 by Christoph Cullmann. Committed on 02/11/2012 at 21:22. Pushed by cullmann into branch 'master'. disable replace/replace all if document is read-only, like we anyway replace the replace action in the menu M +10 -0 part/search/katesearchbar.cpp M +3 -0 part/search/katesearchbar.h M +4 -0 part/view/kateview.cpp http://commits.kde.org/kate/34e29765afd8fa6ee3a4566a5e88a599279035e0