Merge lp:~ajalkane/ubuntu-filemanager-app/rename-textfield-focus into lp:ubuntu-filemanager-app

Proposed by Arto Jalkanen
Status: Merged
Approved by: Alan Pope 🍺🐧🐱 πŸ¦„
Approved revision: 264
Merged at revision: 272
Proposed branch: lp:~ajalkane/ubuntu-filemanager-app/rename-textfield-focus
Merge into: lp:ubuntu-filemanager-app
Diff against target: 38 lines (+8/-2)
2 files modified
src/app/qml/ui/ConfirmDialogWithInput.qml (+6/-0)
src/app/qml/ui/FolderListPage.qml (+2/-2)
To merge this branch: bzr merge lp:~ajalkane/ubuntu-filemanager-app/rename-textfield-focus
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Carlos Jose Mazieri Approve
Review via email: mp+232632@code.launchpad.net

Commit message

Fixed focus issue with rename dialog (or any other dialog using ConfirmDialogWithInput.qml)

Description of the change

Fixed focus issue with rename dialog (or any other dialog using ConfirmDialogWithInput.qml)

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
Carlos Jose Mazieri (carlos-mazieri) wrote :

It looks OK to me.

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

Okay, Jenkins suddenly fails. Just before Carlos' comment it succeeded. Can someone re-run the job, perhaps something in the testing environment?

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

The CI worked but autolanding didn't. We had a problem with jenkins between Friday and Wednesday so we're re-triggering on everything. Other merges will be affected too.

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/ConfirmDialogWithInput.qml'
2--- src/app/qml/ui/ConfirmDialogWithInput.qml 2014-02-19 00:00:15 +0000
3+++ src/app/qml/ui/ConfirmDialogWithInput.qml 2014-08-28 20:06:47 +0000
4@@ -27,6 +27,12 @@
5 signal accepted
6 signal rejected
7
8+ Component.onCompleted: {
9+ // Need to force active focus to input, otherwise the parent object that created this
10+ // dialog will continue to have active focus.
11+ input.forceActiveFocus()
12+ }
13+
14 TextField {
15 id: input
16 objectName: "inputField"
17
18=== modified file 'src/app/qml/ui/FolderListPage.qml'
19--- src/app/qml/ui/FolderListPage.qml 2014-08-06 20:22:29 +0000
20+++ src/app/qml/ui/FolderListPage.qml 2014-08-28 20:06:47 +0000
21@@ -497,7 +497,7 @@
22 Component {
23 id: confirmRenameDialog
24 ConfirmDialogWithInput {
25- // IMPROVE: this does not seem good: the backend excepts row and new name.
26+ // IMPROVE: this does not seem good: the backend expects row and new name.
27 // But what if new files are added/deleted in the background while user is
28 // entering the new name? The indices change and wrong file is renamed.
29 // Perhaps the backend should take as parameters the "old name" and "new name"?
30@@ -517,7 +517,7 @@
31 {
32 title: i18n.tr("Could not rename"),
33 text: i18n.tr("Insufficient permissions or name already exists?")
34- })
35+ })
36
37 }
38 } else {

Subscribers

People subscribed via source and target branches