Merge lp:~mterry/unity8/fix-multigreeter-qt5.3 into lp:unity8

Proposed by Michael Terry
Status: Merged
Approved by: Michał Sawicz
Approved revision: 978
Merged at revision: 993
Proposed branch: lp:~mterry/unity8/fix-multigreeter-qt5.3
Merge into: lp:unity8
Diff against target: 21 lines (+4/-4)
1 file modified
qml/Greeter/LoginList.qml (+4/-4)
To merge this branch: bzr merge lp:~mterry/unity8/fix-multigreeter-qt5.3
Reviewer Review Type Date Requested Status
Michał Sawicz Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+224000@code.launchpad.net

Commit message

Fix the testMultiGreeter qmluitest. Incoming method variables are apparently read-only in Qt5.3.

Description of the change

Fix the testMultiGreeter qmluitest. Incoming method variables are apparently read-only in Qt5.3.

Is that assessment correct? If I set to 'text' variable, it doesn't stick. But writing to a new var works like I'd expect.

== Checklist ==

 * Are there any related MPs required for this MP to build/function as expected? Please list.
 - No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
 - Yup, ran the test

 * Did you make sure that your branch does not contain spurious tags?
 - Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
 - NA

 * If you changed the UI, has there been a design review?
 - NA

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yup. Test passes.

 * Did CI run pass? If not, please explain why.
No, other 5.3 failures :|

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Greeter/LoginList.qml'
2--- qml/Greeter/LoginList.qml 2014-05-28 14:48:52 +0000
3+++ qml/Greeter/LoginList.qml 2014-06-20 23:07:12 +0000
4@@ -257,13 +257,13 @@
5
6 onShowMessage: {
7 // inefficient, but we only rarely deal with messages
8- text = text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\n/g, "<br>");
9+ var html = text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\n/g, "<br>")
10 if (isError)
11- text = "<font color=\"#df382c\">" + text + "</font>"
12+ html = "<font color=\"#df382c\">" + html + "</font>"
13 if (infoLabel.text == "")
14- infoLabel.text = text;
15+ infoLabel.text = html
16 else
17- infoLabel.text = infoLabel.text + "<br>" + text;
18+ infoLabel.text = infoLabel.text + "<br>" + html
19 }
20
21 onShowPrompt: {

Subscribers

People subscribed via source and target branches