diff options
Diffstat (limited to 'Libraries/LibGUI/GModel.cpp')
-rw-r--r-- | Libraries/LibGUI/GModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/GModel.cpp b/Libraries/LibGUI/GModel.cpp index 36e35abd56..e6cbc03af9 100644 --- a/Libraries/LibGUI/GModel.cpp +++ b/Libraries/LibGUI/GModel.cpp @@ -27,8 +27,8 @@ void GModel::for_each_view(Function<void(GAbstractView&)> callback) void GModel::did_update() { - if (on_model_update) - on_model_update(*this); + if (on_update) + on_update(); for_each_view([](auto& view) { view.did_update_model(); }); |