~tpeeters/ubuntu-ui-toolkit/10-tabsModelIndex

« back to all changes in this revision

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

  • Committer: tpeeters
  • Date: 2014-03-24 19:13:15 UTC
  • mfrom: (967.1.15 ubuntu-ui-toolkit)
  • Revision ID: tim.peeters@canonical.com-20140324191315-cgmt5x2h6v2xq1jh
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        }
34
34
        Action {
35
35
            text: i18n.tr("Cut")
36
 
            enabled: target && target.selectedText !== ""
 
36
            // If paste/editing is not possible, then disable also "Cut" operation
 
37
            // It is applicable for ReadOnly's TextFields and TextAreas
 
38
            enabled: target && target.selectedText !== "" && target.canPaste
37
39
            onTriggered: target.cut()
38
40
        }
39
41
        Action {