Merge lp:~qqworini/ubuntu-rssreader-app/fix-toolbar-bug into lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk

Proposed by Joey Chan
Status: Merged
Approved by: Roman Shchekin
Approved revision: 72
Merged at revision: 73
Proposed branch: lp:~qqworini/ubuntu-rssreader-app/fix-toolbar-bug
Merge into: lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk
Diff against target: 45 lines (+8/-2)
2 files modified
feeds/AppendFeedPage.qml (+4/-1)
feeds/ChooseTopicPage.qml (+4/-1)
To merge this branch: bzr merge lp:~qqworini/ubuntu-rssreader-app/fix-toolbar-bug
Reviewer Review Type Date Requested Status
David Planella Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+187976@code.launchpad.net

Commit message

fix bug #1231137: Missing "Next" button while adding feed (desktop only)

Description of the change

fix bug #1231137: Missing "Next" button while adding feed (desktop only)

// code like below will produce this bug
Page{
tool: ToolbarItems { // ToolbarItems initial with the page
        id: toolbar

        opened: true // bug from here, never open in desktop
        locked: true // if set lock to false, toolbar can be swiped up

// code like below solve temporarily
Page{
id: page
tool: null // set the tool to null at initialization

ToolbarItems {
        id: toolbar

        opened: true
        locked: true
}

function setTool() {
       page.tools = toolbar // set toolbar manually can solve
}

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
David Planella (dpm) wrote :

Nice work Joey. It looks good to me as a workaround until the bug in the SDK is fixed, and Jenkins is happy with it.

Just one thing: could you add a comment in the code, referencing this bug? This way in a few weeks time, when none of us remembers why we did this, it'll help us recall the motivation :)

E.g.

// Workaround for bug #1231137

9 + tools: null

review: Approve
Revision history for this message
Roman Shchekin (mrqtros) wrote :

It works!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'feeds/AppendFeedPage.qml'
--- feeds/AppendFeedPage.qml 2013-09-21 09:27:59 +0000
+++ feeds/AppendFeedPage.qml 2013-09-27 05:18:31 +0000
@@ -20,7 +20,9 @@
20 //.property var selectedFeeds: null // Become local.20 //.property var selectedFeeds: null // Become local.
21 property bool resultsReceived: false // Indicates that at least once results were received.21 property bool resultsReceived: false // Indicates that at least once results were received.
2222
23 tools: ToolbarItems {23 tools: null
24
25 ToolbarItems {
24 id: appendFeedTools26 id: appendFeedTools
2527
26 opened: true28 opened: true
@@ -78,6 +80,7 @@
78 }80 }
7981
80 function reloadPageContent() {82 function reloadPageContent() {
83 appendFeedPage.tools = appendFeedTools
81 if (isDirty) {84 if (isDirty) {
82 tfFeedUrl.text = ""85 tfFeedUrl.text = ""
83 resultsReceived = false86 resultsReceived = false
8487
=== modified file 'feeds/ChooseTopicPage.qml'
--- feeds/ChooseTopicPage.qml 2013-09-11 15:18:51 +0000
+++ feeds/ChooseTopicPage.qml 2013-09-27 05:18:31 +0000
@@ -17,7 +17,9 @@
1717
18 signal topicChoosen(int topicId, var addedFeeds)18 signal topicChoosen(int topicId, var addedFeeds)
1919
20 tools: ToolbarItems {20 tools: null
21
22 ToolbarItems {
21 id: appendFeedTools23 id: appendFeedTools
2224
23 opened: true25 opened: true
@@ -37,6 +39,7 @@
37 }39 }
3840
39 function reloadPageContent() {41 function reloadPageContent() {
42 chooseTopicPage.tools = appendFeedTools
40 suggestionTopicsModel.clear()43 suggestionTopicsModel.clear()
4144
42 var tags = DB.loadTags()45 var tags = DB.loadTags()

Subscribers

People subscribed via source and target branches