GH-1560 trim whitespace from instance name on rename
This commit is contained in:
parent
603b0408ab
commit
f9791a5cc8
@ -1525,6 +1525,7 @@ void MainWindow::on_actionRenameInstance_triggered()
|
|||||||
QString name(m_selectedInstance->name());
|
QString name(m_selectedInstance->name());
|
||||||
name = QInputDialog::getText(this, tr("Instance name"), tr("Enter a new instance name."), QLineEdit::Normal, name, &ok);
|
name = QInputDialog::getText(this, tr("Instance name"), tr("Enter a new instance name."), QLineEdit::Normal, name, &ok);
|
||||||
|
|
||||||
|
name = name.trimmed();
|
||||||
if (name.length() > 0)
|
if (name.length() > 0)
|
||||||
{
|
{
|
||||||
if (ok && name.length())
|
if (ok && name.length())
|
||||||
|
Loading…
Reference in New Issue
Block a user