diff options
Diffstat (limited to 'Userland/Applications/ThemeEditor/main.cpp')
-rw-r--r-- | Userland/Applications/ThemeEditor/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/ThemeEditor/main.cpp b/Userland/Applications/ThemeEditor/main.cpp index 6e612afaf7..be2e37154f 100644 --- a/Userland/Applications/ThemeEditor/main.cpp +++ b/Userland/Applications/ThemeEditor/main.cpp @@ -95,7 +95,7 @@ int main(int argc, char** argv) #undef __ENUMERATE_COLOR_ROLE combo_box.set_only_allow_values_from_model(true); - combo_box.set_model(adopt(*new ColorRoleModel(color_roles))); + combo_box.set_model(adopt_ref(*new ColorRoleModel(color_roles))); combo_box.on_change = [&](auto&, auto& index) { auto role = static_cast<const ColorRoleModel*>(index.model())->color_role(index); color_input.set_color(preview_palette.color(role)); |