[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kate/frameworks] addons/filetree: Do not reset the model without need
From: Albert Astals Cid <aacid () kde ! org>
Date: 2014-06-30 18:21:02
Message-ID: E1X1gCM-0007jG-GM () scm ! kde ! org
[Download RAW message or body]
Git commit c5bd55745ed68ecd48b52908c004865d01522c6c by Albert Astals Cid.
Committed on 30/06/2014 at 18:20.
Pushed by aacid into branch 'frameworks'.
Do not reset the model without need
>From reading the code i see no need to reset the model, the only think that=
i see the reset do is cause the view to "reset" too and the state of open/=
closed roots in the tree gets broken.
Used it for a few minutes and everything worked fine. Reading the code don'=
t see why it shouldn't. I'll it use it a bit more for a few more days.
BUGS: 332990
M +0 -4 addons/filetree/katefiletreemodel.cpp
http://commits.kde.org/kate/c5bd55745ed68ecd48b52908c004865d01522c6c
diff --git a/addons/filetree/katefiletreemodel.cpp b/addons/filetree/katefi=
letreemodel.cpp
index 512392a..0489b3e 100644
--- a/addons/filetree/katefiletreemodel.cpp
+++ b/addons/filetree/katefiletreemodel.cpp
@@ -687,8 +687,6 @@ void KateFileTreeModel::documentOpened(KTextEditor::Doc=
ument *doc)
=
void KateFileTreeModel::documentsOpened(const QList<KTextEditor::Document*=
> &docs)
{
- beginResetModel();
-
foreach (KTextEditor::Document *doc, docs) {
if (m_docmap.contains(doc)) {
documentNameChanged(doc);
@@ -696,8 +694,6 @@ void KateFileTreeModel::documentsOpened(const QList<KTe=
xtEditor::Document*> &doc
documentOpened(doc);
}
}
-
- endResetModel();
}
=
void KateFileTreeModel::documentModifiedChanged(KTextEditor::Document *doc)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic