From ffec1e1930420e1a1d0aafdabf18f3fd1e06c9a2 Mon Sep 17 00:00:00 2001 From: arthomnix Date: Mon, 11 Jul 2022 19:55:36 +0100 Subject: [PATCH] GH-4812 Set placeholder even if the user has changed the name --- launcher/ui/dialogs/NewInstanceDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/ui/dialogs/NewInstanceDialog.cpp b/launcher/ui/dialogs/NewInstanceDialog.cpp index 42130f49..28be8fee 100644 --- a/launcher/ui/dialogs/NewInstanceDialog.cpp +++ b/launcher/ui/dialogs/NewInstanceDialog.cpp @@ -154,10 +154,10 @@ void NewInstanceDialog::setSuggestedPack(const QString& name, InstanceTask* task creationTask.reset(task); defaultInstName = name; + ui->instNameTextBox->setPlaceholderText(name); if (!instNameChanged) { - ui->instNameTextBox->setPlaceholderText(name); ui->instNameTextBox->setText(name); }