aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Brauch <svenbrauch@googlemail.com>2014-01-23 11:44:12 (GMT)
committerSven Brauch <svenbrauch@googlemail.com>2014-01-23 11:44:20 (GMT)
commitaa71f2c7105df0662c421b3caf3a7b9c4a0f5d5c (patch)
tree492d8d6f1ed07950e6ca554773e88563c7cb39ba
parent66ba7632600ea81ab5c6d23f425833ce7e0f37be (diff)
Set the document really read only if files have too long lines
backport of 97234f6a64b10300 from the ktexteditor repo
-rw-r--r--part/document/katedocument.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/part/document/katedocument.cpp b/part/document/katedocument.cpp
index fc22006..22d5db7 100644
--- a/part/document/katedocument.cpp
+++ b/part/document/katedocument.cpp
@@ -2053,6 +2053,7 @@ bool KateDocument::openFile()
// this file can't be saved again without modifications
setReadWrite( false );
+ m_readWriteStateBeforeLoading = false;
QPointer<KTextEditor::Message> message
= new KTextEditor::Message(i18n ("The file %1 was opened and contained lines longer than the configured Line Length Limit (%2 characters).<br />"
"Those lines were wrapped and the document is set to read-only mode, as saving will modify its content.",