Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32856

Removing a file from Git-controlled project removes the file from local file system, even though QtC is told to not to

    XMLWordPrintable

Details

    • 84598c7d0 (17.0)

    Description

      Steps to reproduce:
      1. Create a project in Qt Creator. Type of project is irrelevant, but make sure it is put under version control by Git
      2. From the project view, right click on a source file and choose "remove"
      3. Do no check "Delete file permanently", and proceed
      4. QtC warns about "this might remove the local file"
      5. Ignore, click "Yes"

      Expected outcome:
      Since user does not tell QtC to permanently delete the file, then it shouldnt.

      Actual output:
      QtC executes "git rm" and the local file is gone permanently

      Temporary workaround:
      Go to CMakeLists.txt (CMake) or .pro file (Qmake) and remove files from there. It's going to remove the file from project without affecting actual file.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-32856
          # Subject Branch Project Status CR V

          Activity

            People

              aha_1980 André Hartmann
              luqiaochen Luqiao Chen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes