]> cloud.milkyroute.net Git - dolphin.git/commit
KItemListSmoothScroller: stop animation on property or targetobject change
authorAkseli Lahtinen <akselmo@akselmo.dev>
Mon, 2 Dec 2024 09:40:03 +0000 (11:40 +0200)
committerAkseli Lahtinen <akselmo@akselmo.dev>
Mon, 2 Dec 2024 09:40:03 +0000 (11:40 +0200)
commit6c55cf4b6a89d0d58ee7a29122ac68ac70fad65c
treeeb5a9f4c360b7a2e369ba081e5f7a9392620f912
parent2e22ffbfaee6fa905a678e54c93b9e4c7db2f71c
KItemListSmoothScroller: stop animation on property or targetobject change

Due to changes in 15e0c2a98f480f203ce168b6fa9a2e1f2b0ed8f8 we do not
automatically stop animations now on property or targetobject change,
which causes warnings and timeouts.

This patch makes sure we stop them if their state is Running,
before modifying them.

See also:
https://invent.kde.org/system/dolphin/-/merge_requests/857#note_1083279
src/kitemviews/private/kitemlistsmoothscroller.cpp