summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-19 19:03:41 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-19 19:03:41 (GMT)
commit0d8c29d1b4b49e1811ac8b46824043cb65415b4f (patch)
tree0cf1732f5172f5f3dd8d6d04705c7a75a90532f3
parent3df630b5ec345d4011dad88be2dfef32e976cd72 (diff)
only emit the textInserted/Removed stuff on editing actions, not file close/reload
-rw-r--r--src/document/katedocument.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/document/katedocument.cpp b/src/document/katedocument.cpp
index cb2e264..062382e 100644
--- a/src/document/katedocument.cpp
+++ b/src/document/katedocument.cpp
@@ -2049,9 +2049,6 @@ bool KTextEditor::DocumentPrivate::openFile()
setEncoding(mimeType.mid(pos + 1));
}
- // do we have success ?
- emit KTextEditor::Document::textRemoved(this, documentRange(), m_buffer->text());
-
// update file type, we do this here PRE-LOAD, therefore pass file name for reading from
updateFileType(KTextEditor::EditorPrivate::self()->modeManager()->fileType(this, localFilePath()));
@@ -2089,9 +2086,6 @@ bool KTextEditor::DocumentPrivate::openFile()
view->updateView(true);
}
- // emit all signals about new text after view updates
- emit KTextEditor::Document::textInserted(this, documentRange());
-
// Inform that the text has changed (required as we're not inside the usual editStart/End stuff)
emit textChanged(this);
@@ -2483,8 +2477,6 @@ bool KTextEditor::DocumentPrivate::closeUrl()
emit modifiedOnDisk(this, m_modOnHd, m_modOnHdReason);
}
- emit KTextEditor::Document::textRemoved(this, documentRange(), m_buffer->text());
-
{
// remove all marks
clearMarks();