Summary: | Tree view in open/save dialog: click on a file inside a directory only brings to that directory | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kdelibs | Reporter: | Grósz Dániel <groszdanielpub> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | andresbajotierra, ereslibre, faure, pfeiffer |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Grósz Dániel
2009-01-10 21:55:15 UTC
Here using: Qt: 4.5.1 (qt-copy 971295) KDE: 4.2.92 (KDE 4.2.92 (KDE 4.3 >= 20090617)) kdelibs svn rev. 984425 / kdebase svn rev. 984427 on ArchLinux i686 - Kernel 2.6.29.4 I can confirm the described behaviour in the save dialog of KWrite. Indeed, it seems the treeView case wasn't properly considered: "void KFileWidgetPrivate::setLocationText(const KUrl& url)" with a non-dir url sets the directory if that url contains it. So when you click an item inside an expanded folder in the treeview, setLocationText("dir/file") is called, and the file part is stripped. Also, void KDirOperator::setUrl(const KUrl& _newurl, bool clearforward) does this. Someone with more knowledge about this could fix it An additional observation: it seems to me that the problem occurs in the file dialogs where only one file can be selected and not when several files can be selected. |