We must clean singleton and context property handling so they are always tight to a given QML Engine instance.

Bug #1543998 reported by Zsombor Egri
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Confirmed
High
Zsombor Egri

Bug Description

Currently every singleton component exported as context property declares a static instance which we use across the toolkit as well as in the test cases, which do require an engine to be running. However the instance() functions return the instance created by the first engine, which will cause problems in case an application will use two separate Quick windows, and will try to share a code that has access to both view contents.

We must get rid of the instance() functionality and do a proper implementation for each singleton.

Affected components:
* Units
* i18n
* FontUtils
* QuickUtils
* UbuntuApplication
* StateSaver(!!!!!)
* Haptics

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.