GH-1560 trim whitespace from instance name on rename

This commit is contained in:
Petr Mrázek 2016-05-04 00:31:27 +02:00
parent 603b0408ab
commit f9791a5cc8

View File

@ -1525,6 +1525,7 @@ void MainWindow::on_actionRenameInstance_triggered()
QString name(m_selectedInstance->name());
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 (ok && name.length())