[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: [kate/frameworks] addons/filetree: Do not reset the model without need
From: Dominik Haumann <dhaumann () kde ! org>
Date: 2014-06-30 22:51:40
Message-ID: 1602509.06Dgibzkym () eriador
[Download RAW message or body]
On Monday 30 June 2014 18:21:02 Albert Astals Cid wrote:
> 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
Thanks, Albert, for taking care of this.
> >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/katefiletreemodel.cpp index 512392a..0489b3e 100644
> --- a/addons/filetree/katefiletreemodel.cpp
> +++ b/addons/filetree/katefiletreemodel.cpp
> @@ -687,8 +687,6 @@ void
> KateFileTreeModel::documentOpened(KTextEditor::Document *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<KTextEditor::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