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

Switch Header/Source goes to wrong file with correct name

XMLWordPrintable

      While using Qt Creator's "Switch Header/Source" functionality, if you have a multiple projects, and one of those projects does not have a header/source but another project does and has the same name, then using the action on the file without a header/source will switch to the one of the same name in another project.

      For those who don't understand, here are some steps:

      • Create Project1, with Object.cpp and Object.hpp.
      • Create Project2, with Object.hpp and open the file.
      • Use "Switch Header/Source" on Object.hpp of Project2.
      • Suddenly, you'll be in Project1's Object.cpp.

      This has had me confused on several occasions. It is not proper behavior and the fix probably involves using a single conditional check on the project.

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

            kosjar Nikolai Kosjar
            dhrabovcak Daniel Hrabovcak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes