Skip to content
Commit d6e057aa authored by Dominik Haumann's avatar Dominik Haumann
Browse files

Tab switcher: Add TabswitcherFilesModel::raiseDocument() to avoid updating all items

Previously, raising a document (i.e. moving it to row 0) was done by
unregistering + registering a document again. This triggered several
calls of the expensive updateItems() call, even though updateItems()
is not needed at all in this case.

Now we directly raise via std::rotate(), following the nice talk
https://www.youtube.com/watch?v=W2tWOdzgXHA
parent ad18a508
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