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

caching in QDir in 4.7 is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.7.2
    • Core: I/O
    • None
    • debian unstable i386
    • 2964718224c0ed356511335742368d4fc421c6bd 14054a47230d41063a10ce8fbf7dc65c916163d7

    Description

      the caching in QDir in 4.7 is broken compared to 4.6.

      Attached code prints in qt4.6 something along the lines of:
      (".", "..", "main.cpp", "main.o", "Makefile", "qdirtest", "qdirtest.pro")
      process finished 5
      (".", "..", "foo", "main.cpp", "main.o", "Makefile", "qdirtest", "qdirtest.pro")
      (".", "..", "foo", "main.cpp", "main.o", "Makefile", "qdirtest", "qdirtest.pro")

      as expected, the file "foo" shows up in both the old and the new QDir's directory listings after created.

      With qt4.7, I get the following output:

      (".", "..", "main.cpp", "main.o", "Makefile", "qdirtest", "qdirtest.pro")
      process finished 5
      (".", "..", "main.cpp", "main.o", "Makefile", "qdirtest", "qdirtest.pro")
      (".", "..", "foo", "main.cpp", "main.o", "Makefile", "qdirtest", "qdirtest.pro")

      The file "foo" only shows up in the 'new' QDir's file listings.

      Attachments

        1. main.cpp
          0.4 kB
          Sune Vuorela
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            biochimia João Abecasis
            svuorela Sune Vuorela
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes