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

MessageDialog is triggering handler twice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical 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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes