~osomon/ubuntu-ui-toolkit/downloadmanager

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/AbstractButton.qml

Do not trigger a ToolbarButton that is not enabled. Fixes: https://bugs.launchpad.net/bugs/1202245.

Approved by PS Jenkins bot, Christian Dywan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    /*!
48
48
      If a button is clicked, its triggered() signal will automatically be called.
49
49
     */
50
 
    onClicked: button.triggered(button)
 
50
    onClicked: button.trigger()
51
51
 
52
52
    Keys.onEnterPressed: clicked()
53
53
    Keys.onReturnPressed: clicked()