Skip to content

Commit

Permalink
Fixed|Widgets: Issues with the directory array widget
Browse files Browse the repository at this point in the history
MessageDialog’s width rule was never released.

DirectoryArrayWidget was using the wrong keys for Config.resource.recursedFolders and did not indicate that changes occurred after toggling “Subdirs”.
  • Loading branch information
skyjake committed Oct 28, 2018
1 parent 4cf017b commit fcd13a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions doomsday/sdk/libappfw/src/dialogs/messagedialog.cpp
Expand Up @@ -58,6 +58,11 @@ DENG_GUI_PIMPL(MessageDialog)
updateLayout();
}

~Impl() override
{
releaseRef(layoutWidth);
}

void updateLayout(LayoutBehavior behavior = ExcludeHidden)
{
ScrollAreaWidget &area = self().area();
Expand Down
3 changes: 2 additions & 1 deletion doomsday/sdk/libappfw/src/widgets/directoryarraywidget.cpp
Expand Up @@ -103,7 +103,7 @@ struct RecurseToggler

TextValue key() const
{
return {item->label()};
return {item->data().toString()};
}

void fetch()
Expand All @@ -117,6 +117,7 @@ struct RecurseToggler
void toggleStateChanged(ToggleWidget &toggle) override
{
recursed().value().setElement(key(), new NumberValue(toggle.isActive()));
emit owner->arrayChanged();
}

void widgetBeingDeleted(Widget &) override
Expand Down

0 comments on commit fcd13a7

Please sign in to comment.