Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103016

QFileDialog wrongly strips filename prefix when accessing parent dir

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.3, 6.3.0
    • None
    • Archlinux
    • Linux/X11

    Description

      Original report: https://github.com/qutebrowser/qutebrowser/issues/7150

      When the current folder is, say xyz, and the string xyzc (with c being any character, apparently) matches the beginning of sibling files/directories' names, those files/dirs are not selectable by writing ../xyz and hitting DownArrow/UpArrow, because when one is selected, the ../xyzc prefix is stripped off.

      See the GIF:

      This is reproducible by e.g. doing touch memgraph.mp3 memgraph.git memgraphmp3; mkdir memgraph in an empty directory, calling QFileDialog::getOpenFileName(), navigating to the memgraph subfolder, and then entering ../memgraph and pressing down arrow (like in the gif).

      Attachments

        For Gerrit Dashboard: QTBUG-103016
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change