Skip to content

SettingsScope fails to load project settings #38

@Shadowigor

Description

@Shadowigor

Settings that are saved on a project level, cannot be loaded again.

How to reproduce

Run this code after the item got the proper parentScope() (e.g. in the parentScopeChanged() slot):

qDebug() << "Before: " << this->settingsScope()->parentScope()->allSettings().size();
this->settingsScope()->parentScope()->setValue("Test", "Something");
qDebug() << "After: " << this->settingsScope()->parentScope()->allSettings().size();

Expected Behavior

// Running the application for the first time
Before: 0
After: 1
// Save project, close application

// Running the application for the second time
Before: 1
After: 1

Current Behavior:

// Running the application for the first time
Before: 0
After: 1
// Save project, close application

// Running the application for the second time
Failed to load item from element tagged  "SettingsScope"
Before: 0
After: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions