Bug 198570 - Opened file not inserted sorted into document list
Summary: Opened file not inserted sorted into document list
Status: RESOLVED DUPLICATE of bug 184055
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-01 21:28 UTC by Chusslove Illich
Modified: 2009-08-17 19:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chusslove Illich 2009-07-01 21:28:22 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

When I've sorting order set to e.g. by URL or file, and open a file, instead
of it being inserted into proper place in document list, it gets just
appended to the end. Only when I open the next file, the previously opened
is reinserted properly.

Some sniffing around on my part:

In app/kateviewdocumentproxymodel.cpp, KateViewDocumentProxyModel::sort()
does get called when a file is opened, but the URL and file name for the
just opened file are empty at that point. So it sorts wrongly.

At the end of KateViewDocumentProxyModel::opened there is a commented out
call to sort(). If I uncomment it, the problem is solved, but then sorting
is performed twice on opening. (The call was commented out in
http://websvn.kde.org/?view=rev&revision=887760.)
Comment 1 Dario Andres 2009-08-17 19:17:48 UTC

*** This bug has been marked as a duplicate of bug 184055 ***