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
=== modified file 'src/app/qml/ui/ConfirmDialogWithInput.qml'
--- src/app/qml/ui/ConfirmDialogWithInput.qml 2014-02-19 00:00:15 +0000
+++ src/app/qml/ui/ConfirmDialogWithInput.qml 2014-08-28 20:06:47 +0000
@@ -27,6 +27,12 @@
27 signal accepted27 signal accepted
28 signal rejected28 signal rejected
2929
30 Component.onCompleted: {
31 // Need to force active focus to input, otherwise the parent object that created this
32 // dialog will continue to have active focus.
33 input.forceActiveFocus()
34 }
35
30 TextField {36 TextField {
31 id: input37 id: input
32 objectName: "inputField"38 objectName: "inputField"
3339
=== modified file 'src/app/qml/ui/FolderListPage.qml'
--- src/app/qml/ui/FolderListPage.qml 2014-08-06 20:22:29 +0000
+++ src/app/qml/ui/FolderListPage.qml 2014-08-28 20:06:47 +0000
@@ -497,7 +497,7 @@
497 Component {497 Component {
498 id: confirmRenameDialog498 id: confirmRenameDialog
499 ConfirmDialogWithInput {499 ConfirmDialogWithInput {
500 // IMPROVE: this does not seem good: the backend excepts row and new name.500 // IMPROVE: this does not seem good: the backend expects row and new name.
501 // But what if new files are added/deleted in the background while user is501 // But what if new files are added/deleted in the background while user is
502 // entering the new name? The indices change and wrong file is renamed.502 // entering the new name? The indices change and wrong file is renamed.
503 // Perhaps the backend should take as parameters the "old name" and "new name"?503 // Perhaps the backend should take as parameters the "old name" and "new name"?
@@ -517,7 +517,7 @@
517 {517 {
518 title: i18n.tr("Could not rename"),518 title: i18n.tr("Could not rename"),
519 text: i18n.tr("Insufficient permissions or name already exists?")519 text: i18n.tr("Insufficient permissions or name already exists?")
520 })520 })
521521
522 }522 }
523 } else {523 } else {

Subscribers

People subscribed via source and target branches