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

Duplicate filenames added to .pro file when overwriting existing files while adding new files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.4.0
    • Fix Version/s: None
    • Labels:

      Description

      In an open project,

      • add a new file from "C++ Class" template (let's say TheClass)
      • 2 new files in project: theclass.cpp and theclass.h
      • add a new "Qt Designer Form Class" (name it TheClass)
      • Qt Creator will ask, if you want to overwrite theclass.cpp and theclass.h
      • Answer with yes for both (keep both checkboxes checked)
      • 3 new files in project: theclass.ui theclass.cpp and theclass.h
      • Result is that theclass.cpp and theclass.h are added twice

      My expectation is that theclass.cpp and theclass.h are listed only once in the .pro file.

      NOTE: This affects qmake which results in linker errors (duplicate symbols), see QTBUG-63246

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                kandeler Christian Kandeler
                Reporter:
                narodahk narodahk
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes