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

MessageDialog is triggering handler twice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.2.1, 5.3.0
    • 5.2.0, 5.3.0 RC1
    • Quick: Dialogs
    • None
    • Linux / Ubuntu 64
      Ubuntu 13.10
    • a5669568904b37b1d6b297e7190d18306e198604 f60911ca0d492c3868f7feb71d1de63f111d6cd6

    Description

      MessageDialog is triggering signals twice

      import QtQuick 2.2
      import QtQuick.Dialogs 1.1

      .....

      MessageDialog {
      id: id_dialogDelete
      title: qsTr("Warning");
      icon: StandardIcon.Warning
      text: qsTr("Are you sure?")
      standardButtons: StandardButton.Yes | StandardButton.No
      Component.onCompleted: visible = true

      onYes:

      { console.log("DELETE") }

      }

      Triggers yes() signal two times and the result is:

      DELETE
      DELETE

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-35933
          # Subject Branch Project Status CR V

          Activity

            People

              srutledg Shawn Rutledge
              dmendizabal Daniel Mendizabal
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes