Skip to content

Commit fc04895

Browse files
committed
Fix settings custom dialog() size (2)
Fixes #3003
1 parent 35e7543 commit fc04895

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/scriptable/scriptableproxy.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,6 +2113,12 @@ int ScriptableProxy::inputDialog(const NamedValueList &values)
21132113
widgets.append( createWidget(value.name, value.value, &inputDialog) );
21142114
}
21152115

2116+
if ( !dialogTitle.isNull() ) {
2117+
dialog.setWindowTitle(dialogTitle);
2118+
dialog.setObjectName(QStringLiteral("dialog_") + dialogTitle);
2119+
WindowGeometryGuard::create(&dialog);
2120+
}
2121+
21162122
// WORKAROUND for broken initial focus in Qt 6.6 (QTBUG-121514)
21172123
if (!widgets.isEmpty())
21182124
widgets.first()->setFocus();
@@ -2178,12 +2184,6 @@ int ScriptableProxy::inputDialog(const NamedValueList &values)
21782184
// Connecting this directly to QEventLoop::quit() doesn't seem to work always.
21792185
connect(this, &ScriptableProxy::abortEvaluation, &dialog, &QDialog::reject);
21802186

2181-
if ( !dialogTitle.isNull() ) {
2182-
dialog.setWindowTitle(dialogTitle);
2183-
dialog.setObjectName(QStringLiteral("dialog_") + dialogTitle);
2184-
WindowGeometryGuard::create(&dialog);
2185-
}
2186-
21872187
dialog.show();
21882188

21892189
raiseWindow(&dialog);

0 commit comments

Comments
 (0)