From f9791a5cc80b8e99eebd68176c33fdc1c377af86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 4 May 2016 00:31:27 +0200 Subject: [PATCH] GH-1560 trim whitespace from instance name on rename --- application/MainWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 1dcc59822..39a6a7e98 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())