Merge lp:~ajalkane/ubuntu-filemanager-app/use-backend-to-open-files into lp:ubuntu-filemanager-app

Proposed by Arto Jalkanen
Status: Merged
Merged at revision: 30
Proposed branch: lp:~ajalkane/ubuntu-filemanager-app/use-backend-to-open-files
Merge into: lp:ubuntu-filemanager-app
Diff against target: 54 lines (+7/-4)
2 files modified
FileActionDialog.qml (+3/-1)
FolderListView.qml (+4/-3)
To merge this branch: bzr merge lp:~ajalkane/ubuntu-filemanager-app/use-backend-to-open-files
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Needs Fixing
Arto Jalkanen Approve
Review via email: mp+164225@code.launchpad.net

Commit message

Using backend to open files for more flexibility in future

Description of the change

Using backend to open filetypes for future flexibility.

To post a comment you must log in.
Revision history for this message
Arto Jalkanen (ajalkane) wrote :

I say, no harm in this change

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

FAILED: Autolanding.
No commit message was specified in the merge proposal. Hit 'Add commit message' on the merge proposal web page or follow the link below. You can approve the merge proposal yourself to rerun.
https://code.launchpad.net/~ajalkane/ubuntu-filemanager-app/use-backend-to-open-files/+merge/164225/+edit-commit-message

review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

FAILED: Continuous integration, rev:30
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~ajalkane/ubuntu-filemanager-app/use-backend-to-open-files/+merge/164225/+edit-commit-message

http://91.189.93.125:8080/job/ubuntu-filemanager-app-ci/2/
Executed test runs:
    SUCCESS: http://91.189.93.125:8080/job/ubuntu-filemanager-app-raring-amd64-ci/2

Click here to trigger a rebuild:
http://91.189.93.125:8080/job/ubuntu-filemanager-app-ci/2/rebuild

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'FileActionDialog.qml'
2--- FileActionDialog.qml 2013-04-17 17:55:41 +0000
3+++ FileActionDialog.qml 2013-05-16 16:25:31 +0000
4@@ -18,12 +18,14 @@
5 import QtQuick 2.0
6 import Ubuntu.Components 0.1
7 import Ubuntu.Components.Popups 0.1
8+import org.nemomobile.folderlistmodel 1.0
9
10 Dialog {
11 id: root
12
13 property string fileName
14 property string filePath
15+ property FolderListModel folderListModel
16
17 title: i18n.tr("Choose action")
18 text: i18n.tr("For file: ") + fileName
19@@ -32,7 +34,7 @@
20 text: i18n.tr("Open")
21 onClicked: {
22 console.log("Opening file", filePath)
23- Qt.openUrlExternally("file://" + filePath)
24+ folderListModel.openPath(filePath)
25 onClicked: PopupUtils.close(root)
26 }
27 }
28
29=== modified file 'FolderListView.qml'
30--- FolderListView.qml 2013-04-23 16:54:17 +0000
31+++ FolderListView.qml 2013-05-16 16:25:31 +0000
32@@ -157,6 +157,7 @@
33
34 delegate: FolderListDelegate {
35 id: delegate
36+
37 onClicked: {
38 if (model.isDir) {
39 if (model.isReadable && model.isExecutable) {
40@@ -172,11 +173,11 @@
41 }
42 } else {
43 console.log("Non dir clicked")
44- PopupUtils.open(Qt.resolvedUrl("FileActionDialog.qml"), delegate,
45+ PopupUtils.open(Qt.resolvedUrl("FileActionDialog.qml"), root,
46 {
47 fileName: model.fileName,
48- filePath: model.filePath
49-
50+ filePath: model.filePath,
51+ folderListModel: root.folderListModel
52 })
53 }
54 }

Subscribers

People subscribed via source and target branches