[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 162964] New: Weird initial selection in open file dialog
From:       Robin Pedersen <robinpeder () gmail ! com>
Date:       2008-05-31 21:59:51
Message-ID: 20080601000010.162964.robinpeder () gmail ! com
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic