Commit b62d83be authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Dialog: Do not update layout parameters while hidden

Wait until the dialog it's shown to position the components within.
Otherwise we do it based on a random size.

BUG: 452512
parent af647f42
Pipeline #163798 passed with stage
in 4 minutes and 45 seconds
......@@ -475,7 +475,7 @@ void DialogPrivate::getSizeHints(QSize &min, QSize &max) const
void DialogPrivate::updateLayoutParameters()
if (!componentComplete || !mainItem || !mainItemLayout) {
if (!componentComplete || !mainItem || !mainItemLayout || q->visibility() == QWindow::Hidden) {
Supports Markdown
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