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

QFileSystemWatcher fileChanged signal uses the wrong path when a watched file is moved and added again

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.1.0
    • None
    • Linux (inotify)
    • Ib45d8efdf5afbf8b8f6b4b26e43f3d6ee740aca6

    Description

      On Linux using QFileSystemWatcher with inotify backend when moving some files and adding them again to the watcher (with the new name) before all the fileChanged signals are emitted, QFileSystemWatcher emits the remaining signals with the new filename instead of the old one.

      This bug doesn't apply on Qt 5.1.0 for Windows and Mac

      The attached program reproduces the bug. To run it:

      qmake -project "QT += testlib" && qmake && make

      Attachments

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

        Activity

          People

            w00t Robin Burchell
            rferrazz Riccardo Ferrazzo
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes