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

Image Source control does wrong things when clicking "Cancel"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 4.2.2
    • Qt Creator 3.0.1, Qt Creator 3.3.0
    • Quick Designer
    • Ubuntu 12.04 LTS 64 bit
      Ubuntu 14.04 LTS 64 bit
      Qt v5.2.0

    Description

      1. Open a QML file in Designer.
      2. Drag an Image item onto the canvas.
        The "Source" control in Properties view displays a path ending in "template_image.png"
      3. Click on the "..." button right of the "Source" control.
      4. Click "Cancel".
        The path disappears.
      5. Switch to Edit mode and back to Design mode.
        The path is back.

      Not bad enough? It gets worse:

      1. Open a QML file in Designer.
      2. Drag two Image items onto the canvas.
      3. Select one of the Image items.
      4. Click on the "..." button, select an image file and click "OK".
        The image item displays the file.
      5. Select the other Image item.
      6. Click on the "..." button and click "Cancel".
        The image item displays the file from step 4.

      Clicking "Cancel" should not do anything except for closing the current dialog. It should neither remove displayed paths nor should it insert images to where they don't belong.

      The bug can also be reproduced with BorderImage items.

      Attachments

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

        Activity

          People

            tjenssen Tim Jenssen
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes