summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GSortingProxyModel.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-20 19:45:08 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-20 19:45:08 +0200
commit076827a05d731b07e2392aaf0f86761c38eb00eb (patch)
tree908600e8c3fe7ae316964b3348f343ed1cd6f68f /Libraries/LibGUI/GSortingProxyModel.cpp
parentf7dce05c82d0826c8ed2373ca25e3ee14c5a3065 (diff)
downloadserenity-076827a05d731b07e2392aaf0f86761c38eb00eb.zip
GModel: Rename on_model_update(GModel&) => on_update()
Just simplifying the API of this hook a little bit.
Diffstat (limited to 'Libraries/LibGUI/GSortingProxyModel.cpp')
-rw-r--r--Libraries/LibGUI/GSortingProxyModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GSortingProxyModel.cpp b/Libraries/LibGUI/GSortingProxyModel.cpp
index 0876f960d9..17859a4c2b 100644
--- a/Libraries/LibGUI/GSortingProxyModel.cpp
+++ b/Libraries/LibGUI/GSortingProxyModel.cpp
@@ -7,7 +7,7 @@ GSortingProxyModel::GSortingProxyModel(NonnullRefPtr<GModel>&& target)
: m_target(move(target))
, m_key_column(-1)
{
- m_target->on_model_update = [this](GModel&) {
+ m_target->on_update = [this] {
resort();
};
}