Merge lp:~phablet-team/camera-app/disable-edit-videos into lp:camera-app

Proposed by Ugo Riboni
Status: Merged
Merged at revision: 516
Proposed branch: lp:~phablet-team/camera-app/disable-edit-videos
Merge into: lp:camera-app
Diff against target: 19 lines (+2/-0)
1 file modified
SlideshowView.qml (+2/-0)
To merge this branch: bzr merge lp:~phablet-team/camera-app/disable-edit-videos
Reviewer Review Type Date Requested Status
Ubuntu Phablet Team Pending
Review via email: mp+250181@code.launchpad.net

Description of the change

Disable editing when the file is a video

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'SlideshowView.qml'
2--- SlideshowView.qml 2015-02-18 13:39:57 +0000
3+++ SlideshowView.qml 2015-02-18 18:05:24 +0000
4@@ -63,6 +63,7 @@
5 text: i18n.tr("Edit")
6 iconName: "edit"
7 onTriggered: editor.start(listView.currentItem.url)
8+ enabled: listView.currentItem && !listView.currentItem.isVideo
9 }
10
11 Component.onCompleted: {
12@@ -136,6 +137,7 @@
13 property bool pinchInProgress: zoomPinchArea.active
14 property string url: fileURL
15 property bool isSelected: selected
16+ property alias isVideo: media.isVideo
17
18 function zoomIn(centerX, centerY, factor) {
19 flickable.scaleCenterX = centerX / (flickable.sizeScale * flickable.width);

Subscribers

People subscribed via source and target branches