Merge lp:~gerlowskija/ubuntu-filemanager-app/bug_1331333 into lp:ubuntu-filemanager-app

Proposed by Jason
Status: Merged
Approved by: Arto Jalkanen
Approved revision: 216
Merged at revision: 221
Proposed branch: lp:~gerlowskija/ubuntu-filemanager-app/bug_1331333
Merge into: lp:ubuntu-filemanager-app
Diff against target: 11 lines (+1/-1)
1 file modified
src/app/qml/ui/FolderListPage.qml (+1/-1)
To merge this branch: bzr merge lp:~gerlowskija/ubuntu-filemanager-app/bug_1331333
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Arto Jalkanen Approve
Review via email: mp+225092@code.launchpad.net

Commit message

Change 'caller' of GoToDialog to mainView

Description of the change

This change is a fix for Bug 1331333. In this bug, the CTRL+L shortcut (which should ideally open a dialog window where a user can enter a directory to navigate to) does nothing.

The "caller" id argument given to PopupUtils.open(), due to a recent restructuring of the code, was no longer in scope. This caused the open() call to fail and the pop-up window to not appear.

To fix this behavior, the new revision on this branch changes the "caller" argument from "goToButton", to "mainView". There might be a better "caller" to use than "mainView", however mainView made sense to me, as the shortcut can be invoked only on the mainView page.

To test this fix, pull down the branch on a trusty desktop, start the app and press CTRL+L from the main page. This should cause the dialog to appear.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Arto Jalkanen (ajalkane) wrote :

Thanks,

looks good.

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/app/qml/ui/FolderListPage.qml'
2--- src/app/qml/ui/FolderListPage.qml 2014-06-22 08:51:04 +0000
3+++ src/app/qml/ui/FolderListPage.qml 2014-06-30 22:31:18 +0000
4@@ -696,7 +696,7 @@
5
6 function keyPressed(key, modifiers) {
7 if (key === Qt.Key_L && modifiers & Qt.ControlModifier) {
8- PopupUtils.open(Qt.resolvedUrl("GoToDialog.qml"), goToButton)
9+ PopupUtils.open(Qt.resolvedUrl("GoToDialog.qml"), mainView);
10 return true;
11 }
12

Subscribers

People subscribed via source and target branches