Uploaded image for project: 'Qt Automotive Suite'
  1. Qt Automotive Suite
  2. AUTOSUITE-1620

mergeField does not merge two QStringLists correctly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P1: Critical
    • Resolution: Fixed
    • 5.15
    • 5.15.1
    • Qt Application Manager
    • None

    Description

      If appman is provided with several configurations, it is supposed to merge the configuration files, resulting in a new configuration.

      For parameters like ui.importPaths the result should be a list of all defined import paths from both configurations.

      However, currently it will only use the ui.importPaths list from the latter of the two configuration files.

      This happens because ui.importPaths is a QStringList and the best overload match of mergeField would be:

      template <typename T> void mergeField(T &into, const T &from, const T &def)
      {
       if (from != def)
       into = from;
      }

       

      The same result would happen for every other QStringList in the configuration.

      Attachments

        For Gerrit Dashboard: AUTOSUITE-1620
        # Subject Branch Project Status CR V

        Activity

          People

            rgriebl Robert Griebl
            bjarne Bjarne Michelsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes