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

Dialog is triggering handler twice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.2
    • 5.3.1
    • Quick: Dialogs
    • None
    • Ubuntu 14.04 LTS, OSX 10.7.5
    • 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

              srutledg Shawn Rutledge
              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