diff options
author | Tim Ledbetter <timledbetter@gmail.com> | 2023-01-14 13:16:24 +0000 |
---|---|---|
committer | Jelle Raaijmakers <jelle@gmta.nl> | 2023-01-15 19:19:06 +0100 |
commit | 810c23b4220756fab6bdaae9e5be2b6891005847 (patch) | |
tree | 5f5e4d9581001a6c0e43eb81da71abaa0caeea6e /Userland | |
parent | c1ee919addec9bb0fabe3132508c1476d2df1848 (diff) | |
download | serenity-810c23b4220756fab6bdaae9e5be2b6891005847.zip |
ClipboardHistory: Invalidate model on item removal
Not doing this caused the window to not update until the mouse was
clicked again.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applets/ClipboardHistory/ClipboardHistoryModel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applets/ClipboardHistory/ClipboardHistoryModel.cpp b/Userland/Applets/ClipboardHistory/ClipboardHistoryModel.cpp index 61477cc761..350f7f9a78 100644 --- a/Userland/Applets/ClipboardHistory/ClipboardHistoryModel.cpp +++ b/Userland/Applets/ClipboardHistory/ClipboardHistoryModel.cpp @@ -126,6 +126,7 @@ void ClipboardHistoryModel::add_item(const GUI::Clipboard::DataAndType& item) void ClipboardHistoryModel::remove_item(int index) { m_history_items.remove(index); + invalidate(); } void ClipboardHistoryModel::config_string_did_change(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, DeprecatedString const& value_string) |