]> cloud.milkyroute.net Git - dolphin.git/commit
dolphinstatusbar: Fix negative value warnings with small statusbar fixedwidth
authorAkseli Lahtinen <akselmo@akselmo.dev>
Mon, 3 Mar 2025 12:02:20 +0000 (14:02 +0200)
committerAkseli Lahtinen <akselmo@akselmo.dev>
Tue, 4 Mar 2025 16:55:48 +0000 (16:55 +0000)
commitd01d6ca476ce89cab3c3cc2ee50d242c74789cb4
tree14b39d6531ed012be15797e4fa6448e5094e2007
parenta1cea477c22e43079986e7204a61c5df385427ee
dolphinstatusbar: Fix negative value warnings with small statusbar fixedwidth

During splitview animations the parentWidget()->width could be lower
than scrollbarWidth. If it goes to negatives it causes a lot of
warnings.

Make sure to bound the value between 0 and parentWidget()->width() so
that it can't go into negatives.
src/statusbar/dolphinstatusbar.cpp