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

    • 84598c7d0 (17.0)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes