Skip to content

Commit 4e7e9a3

Browse files
committed
Fix settings custom dialog() size
Fixes #3003
1 parent 1f5c9f6 commit 4e7e9a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/scriptable/scriptableproxy.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,14 +2114,16 @@ int ScriptableProxy::inputDialog(const NamedValueList &values)
21142114
if (!widgets.isEmpty())
21152115
widgets.first()->setFocus();
21162116

2117-
dialog.adjustSize();
2118-
21192117
if (geometry.height() == 0)
21202118
geometry.setHeight(dialog.height());
21212119
if (geometry.width() == 0)
21222120
geometry.setWidth(dialog.width());
2121+
21232122
if (geometry.isValid())
21242123
dialog.resize(geometry.size());
2124+
else
2125+
dialog.adjustSize();
2126+
21252127
if (geometry.x() >= 0 && geometry.y() >= 0)
21262128
dialog.move(geometry.topLeft());
21272129

0 commit comments

Comments
 (0)