[Bug 162964] New: Weird initial selection in open file dialog

Robin Pedersen robinpeder at gmail.com
Sat May 31 23:00:12 BST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=162964         
           Summary: Weird initial selection in open file dialog
           Product: kde
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs kde org
        ReportedBy: robinpeder gmail com


Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          GCC 4.2.3 
OS:                Linux

I've seen this in both kwrite and kate, both 4.1 beta 1 and current SVN. After debugging with kate, I have concluded that the bug is in KFileDialog.

When selecting to open a file, kate calls KEncodingFileDialog::getOpenUrlsAndEncoding(), with the url of the currently viewed file initially selected ("startDir" argument). However, I've tried both using KFileDialog::getOpenUrls() and creating a KFileDialog manually. In all cases, I get the same result.

The first time an open dialog is shown, the initial selection is as expected. The location editor contains the file name without quotes, and the whole name is selected, to that I can quickly type the name of another file, and press enter to open it. This is the same behavior as KDE3, and how it should be.

Every time a new file dialog is shown, after the first, the initial selection is different. The location editor contains the file name like the first time, but now it's quoted, and there's no selection. The cursor is at the end of the content (outside the closing quote).

Now I have to manually clear the editor before I can write the name of another file to open. This is very annoying.



More information about the Unassigned-bugs mailing list