← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1400297] [NEW] PageHeadState doens't correctly update head.contents

 

Public bug reported:

See this small example code: http://paste.ubuntu.com/9426167/
As you can see, I set both PageHeadState to change their 'contents' property when changing state. The expected behavior would be to have in the page head a Label when state is "default" and a TextEntry when in "search" state. However after some interactions (switching state 2 times) both the Label and the Entry are shown.
As this doesn't happen with other properties, this should not happen with contents.
I can set a 'visible' property to each component as workaround though.

Thanks,
Giulio

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "testqml.qml"
   https://bugs.launchpad.net/bugs/1400297/+attachment/4276096/+files/testqml.qml

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1400297

Title:
  PageHeadState doens't correctly update head.contents

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  See this small example code: http://paste.ubuntu.com/9426167/
  As you can see, I set both PageHeadState to change their 'contents' property when changing state. The expected behavior would be to have in the page head a Label when state is "default" and a TextEntry when in "search" state. However after some interactions (switching state 2 times) both the Label and the Entry are shown.
  As this doesn't happen with other properties, this should not happen with contents.
  I can set a 'visible' property to each component as workaround though.

  Thanks,
  Giulio

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1400297/+subscriptions


Follow ups

References