Bug 298828 - Kate treeview opens the same folder several times
Summary: Kate treeview opens the same folder several times
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KDE-Windows
URL:
Keywords:
: 302338 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-25 23:28 UTC by Andrius
Modified: 2012-10-27 01:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (141.26 KB, image/png)
2012-04-26 13:36 UTC, Andrius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrius 2012-04-25 23:28:43 UTC
When opening multiple files from the same folder in Kate, the treeview shows several times the same folder which one of the files inside each folder. Even when saving and restoring the session the problem still persists

Reproducible: Always

Steps to Reproduce:
1. Open several source files from the same folder.
Actual Results:  
when opening foo.cpp, foo.h, bar.cpp, bar.h, all from C:\somepath\somewhere\ kate shows:
*somewhere
**foo.cpp
*somewhere
**foo.h
*somewhere
**bar.cpp
*somewhere
**bar.h

(where * is the tree level)

Expected Results:  
when opening foo.cpp, foo.h, bar.cpp, bar.h, all from C:\somepath\somewhere\ kate should show:
*somewhere
**foo.cpp
**foo.h
**bar.cpp
**bar.h

(where * is the tree level)

Compiled under MSVC 2010.
Comment 1 Patrick Spendrin 2012-04-26 06:27:11 UTC
You very likely mean the document view instead of the tree view. I just don't know where that comes from yet but I find it very annoying too.
Comment 2 Patrick Spendrin 2012-04-26 06:31:07 UTC
looks as if it is the filetree plugin.
Comment 3 Andrius 2012-04-26 13:35:54 UTC
It's the Documents view, in tree view mode.
Comment 4 Andrius 2012-04-26 13:36:46 UTC
Created attachment 70669 [details]
Screenshot
Comment 5 Patrick Spendrin 2012-04-26 20:50:52 UTC
Git commit c0be608540ba52d2ce4f015afe964ad5bba8b0c4 by Patrick Spendrin.
Committed on 26/04/2012 at 22:48.
Pushed by sengels into branch 'KDE/4.8'.

check for an absolute path in the correct way.

M  +2    -1    kate/plugins/filetree/katefiletreemodel.cpp

http://commits.kde.org/kate/c0be608540ba52d2ce4f015afe964ad5bba8b0c4
Comment 6 Patrick Spendrin 2012-04-26 20:52:06 UTC
Git commit 68297f1ef5872e5d27b4b83a8fe91438ed89c318 by Patrick Spendrin.
Committed on 26/04/2012 at 22:48.
Pushed by sengels into branch 'master'.

check for an absolute path in the correct way.

M  +2    -1    kate/plugins/filetree/katefiletreemodel.cpp

http://commits.kde.org/kate/68297f1ef5872e5d27b4b83a8fe91438ed89c318
Comment 7 Andrius 2012-04-26 21:19:15 UTC
Thanks! Now it works as expected.
Comment 8 LukasT 2012-06-22 14:22:36 UTC
*** Bug 302338 has been marked as a duplicate of this bug. ***
Comment 9 Nathan 2012-10-27 01:25:27 UTC
I am having this issue also, could someone please explain how to fix this? I am using kate one KDE for windows at the moment. I have it on Ubuntu too but it doesn't have this bug. Thanks!