Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ StyledDialogView {
for (var i in pages) {
var page = pages[i]
var obj = root.prv.pagesObjects[page.id]
ok &= obj.apply()
ok = obj && ok & obj.apply()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better fix would be not to add these invalid objects to the list, but this is ok for now

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I think there is a bug here, we will never call root.hide() if one of the objects is invalid. Instead, we should do this:

if (obj) {
    ok &= obj.apply()
}

}

if (ok) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import Muse.UiComponents

Rectangle {
id: root
height: parent.height
height: parent ? parent.height : 0
color: ui.theme.backgroundSecondaryColor

default property alias contentData: content.data
Expand Down
Loading