Skip to content
Commit 8329121b authored by David Redondo's avatar David Redondo 🏎
Browse files

dialog: Make sure that max and min sizes are always consistent

In Qt6 changing minimum and maximum sizes immediately changes
the window size. This can lead to situations where upon resize
the new minimum size is bigger than the current maximum size or
the new maximum size smaller than the current minimum one.
Going down this code path asserts.
To avoid this, first set the maximum to the maximum of all sizes
then the new minumum size and finally the new maximum.
parent 19754cd2
Pipeline #387715 passed with stage
in 3 minutes and 24 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment