From aa3e42f65a6b039f789c7c85ce85908452fc1a05 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 9 Nov 2024 01:13:52 -0800 Subject: [PATCH] homescreens/folio: Fix favourites bar ghost position when drag out Fix the scenario where the favourites bar ghost position is not removed when the user drags the delegate out of the bar area. --- containments/homescreens/folio/dragstate.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/containments/homescreens/folio/dragstate.cpp b/containments/homescreens/folio/dragstate.cpp index 2bd4af38..8623dae9 100644 --- a/containments/homescreens/folio/dragstate.cpp +++ b/containments/homescreens/folio/dragstate.cpp @@ -238,6 +238,9 @@ void DragState::onDelegateDragPositionChanged() // stop the favourites insertion timer if the delegate has moved out if (!inFavouritesArea) { m_favouritesInsertBetweenTimer->stop(); + + // clear any ghost entries in the favourites model + m_homeScreen->favouritesModel()->deleteGhostEntry(); } if (inFavouritesArea || inFolder) {