summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/IconView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/IconView.cpp')
-rw-r--r--Libraries/LibGUI/IconView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/IconView.cpp b/Libraries/LibGUI/IconView.cpp
index a034cc3f55..cfb0111329 100644
--- a/Libraries/LibGUI/IconView.cpp
+++ b/Libraries/LibGUI/IconView.cpp
@@ -561,7 +561,7 @@ void IconView::paint_event(PaintEvent& event)
draw_item_text(painter, item_data.index, item_data.selected, item_data.text_rect, item_data.text, font, Gfx::TextAlignment::Center, Gfx::TextElision::Right);
}
- if (item_data.index == drop_candidate_index()) {
+ if (has_pending_drop() && item_data.index == drop_candidate_index()) {
// FIXME: This visualization is not great, as it's also possible to drop things on the text label..
painter.draw_rect(item_data.icon_rect.inflated(8, 8), palette().selection(), true);
}