Commit 1b0a8741 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Fix crash when turning on "bg shading" for Documents plugin



We were adding items to "view history" and "edit history" but not removing
them if shading was disabled. This is now fixed.
Signed-off-by: Waqar Ahmed's avatarWaqar Ahmed <waqar.17a@gmail.com>


(cherry picked from commit 54be8771)
parent 4ddeb160
......@@ -798,7 +798,7 @@ void KateFileTreeModel::documentModifiedOnDisc(KTextEditor::Document *doc, bool
void KateFileTreeModel::documentActivated(const KTextEditor::Document *doc)
{
if (!m_docmap.contains(doc)) {
if (!m_shadingEnabled || !m_docmap.contains(doc)) {
return;
}
......@@ -815,7 +815,7 @@ void KateFileTreeModel::documentActivated(const KTextEditor::Document *doc)
void KateFileTreeModel::documentEdited(const KTextEditor::Document *doc)
{
if (!m_docmap.contains(doc)) {
if (!m_shadingEnabled || !m_docmap.contains(doc)) {
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment