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

mergeField does not merge two QStringLists correctly

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes