summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
Diffstat (limited to 'application')
-rw-r--r--application/dialogs/NewInstanceDialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/dialogs/NewInstanceDialog.cpp b/application/dialogs/NewInstanceDialog.cpp
index 1e12c9ba..678d923f 100644
--- a/application/dialogs/NewInstanceDialog.cpp
+++ b/application/dialogs/NewInstanceDialog.cpp
@@ -147,12 +147,12 @@ QString NewInstanceDialog::instName() const
auto result = ui->instNameTextBox->text();
if(result.size())
{
- return result;
+ return result.trimmed();
}
result = ui->instNameTextBox->placeholderText();
if(result.size() && result != originalPlaceholderText)
{
- return result;
+ return result.trimmed();
}
return QString();
}