Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40613

Dialog is triggering handler twice

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.3.1
    • Fix Version/s: 5.3.2
    • Component/s: Quick: Dialogs
    • Labels:
      None
    • Environment:
      Ubuntu 14.04 LTS, OSX 10.7.5
    • Commits:
      46e9a9a3a1a8399adef2be2af683a0321e8bc86c

      Description

      The Custom Dialog is triggering signals twice

      import QtQuick 2.3
      import QtQuick.Dialogs 1.2
      
      Dialog {
          id: myDialog;
          title: "my Dialog";
          standardButtons: StandardButton.Yes;
          onYes: console.log("click yes!");
          Component.onCompleted: visible = true;
      }
      

      click on "Yes" button and get
      qml: click yes!
      qml: click yes!

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              srutledg Shawn Rutledge
              Reporter:
              nickhuang Cheng-Han Huang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes