Bug 187747

Summary: Kate filelist coloring wrong when closing a file
Product: [Applications] kate Reporter: Christian Ehrlicher <Ch.Ehrlicher>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christian Ehrlicher 2009-03-20 23:24:03 UTC
Version:            (using KDE 4.2.1)
OS:                Linux
Installed from:    SuSE RPMs

When a file is closed, the coloring (shading) is not updated correctly.

- Create 10 new files to get fill the filelist with 'Untitled (0)' .. 'Untitled (10)'
- click on Untitled (5), Untitled (10) and then close Untitled (0)
- now Untitled (6) is colored but not Untitled (5) and Untitled (10) like it should be

I already took a look into kateviewdocumentproxymodel.cpp but could not find the bug which cause this trouble :(
Comment 1 Christian Ehrlicher 2009-03-20 23:24:46 UTC
Forgot to say that this also happens on windows - changed Platform and OS
Comment 2 Christian Ehrlicher 2009-09-03 20:53:10 UTC
SVN commit 1019505 by chehrlic:

fix for bug #187747 - filelist coloring is messed up when a file is closed

BUG: 187747

 M  +12 -0     kateviewdocumentproxymodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1019505
Comment 3 Dominik Haumann 2010-05-08 00:53:37 UTC
The coloring still does not work:
- create 10 new documents (ctrl+n)
- activate Untitled (10), then (9), ... until Untitled.
- click on Untitled (8), (3), (2) and then Untitled
- now Untitled (8) is a significantly other color
- close document (ctrl+w): now the entry with different color is (9)
- close document (ctrl+w): now the entry with different color is (10)

The adaptation does not work correctly. Will reopen.

For reference, the fix for this commit caused crash #213014, which was fixed in this commit for KDE SC 4.5:
http://gitorious.org/kate/kate/commit/f6702b275e3f50f4cbe6dbf8755db36fef5b7319
Comment 4 Dominik Haumann 2010-10-26 13:42:37 UTC
KateViewDocumentProxyModel is replaced by the new file tree plugin. So this should be fixed in KDE version 4.6.