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
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
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.