Bug 318128

Summary: Folder panel doesn't handle FTP files on root properly
Product: [Applications] kate Reporter: Kai Uwe Broulik <kde>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: jowenn
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 4.12
Attachments: Broken folders

Description Kai Uwe Broulik 2013-04-10 10:18:18 UTC
When I open various files on the root of an ftp server, each file gets shown in a separate folder in the folder panel. Kate doesn't recognize that all these files are in the same directory. The directory names also have no title, should probably be the server name and ftp icon.

Reproducible: Always

Steps to Reproduce:
1. Open Kate
2. Browse to an ftp server root directory (ie. ftp://example.com/ without further path)
3. Open a text file there
4. Open another text file in the same directory
Actual Results:  
The files are shown in two separate directories with no title

Expected Results:  
The files are grouped under the same directory which is entitled with the server name.
Comment 1 Kai Uwe Broulik 2013-04-10 10:18:40 UTC
Created attachment 78765 [details]
Broken folders
Comment 2 Joseph Wenninger 2013-07-16 13:33:44 UTC
Git commit e33c9a526a2ae07d90c0cb92f4aefb27fafd0628 by Joseph Wenninger.
Committed on 16/07/2013 at 13:29.
Pushed by jowenn into branch 'master'.

fix the case that there are documents opened in the root of the remote server
My previous commit and this one also fix another bug
Related: bug 321674

M  +5    -2    kate/filetree/katefiletreemodel.cpp

http://commits.kde.org/kate/e33c9a526a2ae07d90c0cb92f4aefb27fafd0628
Comment 3 Joseph Wenninger 2013-07-16 13:35:58 UTC
post 4.11