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

QFile returns wrong file name after renaming

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.5.1
    • 4.4.0
    • Core: I/O
    • None
    • 8d50038174faf315a389010af3a680d865f6843a

    Description

      When using file.rename("foo.txt")then qDebug()<< file.fileName() should return "foo.txt".

      ...
      if (!file.rename("new.txt"))

      { qDebug() << "Error renaming file: " << file.errorString(); return -1; }

      qDebug() << "file name after rename = " << file.fileName();
      ...

      It returns old file name

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            biochimia João Abecasis
            engvolds Morten Engvoldsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes