~osomon/webbrowser-app/copy-image-to-clipboard

« back to all changes in this revision

Viewing changes to src/app/webcontainer/ContextMenuMobile.qml

  • Committer: Olivier Tilloy
  • Date: 2016-11-03 14:21:37 UTC
  • Revision ID: olivier.tilloy@canonical.com-20161103142137-a1lt080gnuiwqnbn
Replicate previous fix for the webapp container.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import com.canonical.Oxide 1.8 as Oxide
24
24
 
25
25
Popups.Dialog {
 
26
    id: contextMenu
 
27
 
26
28
    property QtObject contextModel: model
27
29
    property ActionList actions: null
28
30
 
121
123
                }
122
124
            }
123
125
 
124
 
            onTriggered: contextModel.close()
 
126
            onTriggered: contextMenu.hide()
125
127
        }
126
128
    }
127
129
 
140
142
            fontSize: "x-small"
141
143
            text: i18n.tr("Cancel")
142
144
        }
143
 
        onTriggered: contextModel.close()
 
145
        onTriggered: contextMenu.hide()
 
146
    }
 
147
 
 
148
    onVisibleChanged: {
 
149
        if (!visible) {
 
150
            contextModel.close()
 
151
        }
144
152
    }
145
153
 
146
154
    // adjust default dialog visuals to custom requirements for the context menu