diff options
-rw-r--r-- | application/MainWindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 1dcc5982..39a6a7e9 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -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()) |