[Bug 173137] New: KFileDialog returns erroneous selected files

Seb Ruiz ruiz at kde.org
Sun Oct 19 13:50:47 CEST 2008


http://bugs.kde.org/show_bug.cgi?id=173137

           Summary: KFileDialog returns erroneous selected files
           Product: kdelibs
           Version: 4.1
          Platform: unspecified
        OS/Version: unspecified
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdelibs-bugs at kde.org
        ReportedBy: ruiz at kde.org


Version:            (using KDE 4.1.2)

Take the following code:

KFileDialog dlg( KUrl(QString()), QString("*.*|"), this );
dlg.setMode( KFile::Files );
dlg.exec();
KUrl::List files = dlg.selectedUrls();

This shows a file dialog which allows selecting of files. selectedUrls()
returns the selected urls as expected.

However, when setting the mode to files or directories:

dlg.setMode( KFile::Files | KFile::Directories );

selectedUrls() returns the parent directory of the file which has been
selected.

Reproducible in KDE 4.1.2 up to 4.2-SVN.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kdelibs-bugs mailing list