summaryrefslogtreecommitdiffstats
path: root/application/MainWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-05-04 00:31:27 +0200
committerPetr Mrázek <peterix@gmail.com>2016-05-04 00:31:27 +0200
commitf9791a5cc80b8e99eebd68176c33fdc1c377af86 (patch)
tree1daeb9e1702fe0879daedd5a03e242bb22652c52 /application/MainWindow.cpp
parent603b0408aba4c7d0a5e6b5d4a052068572fbc80f (diff)
downloadMultiMC-f9791a5cc80b8e99eebd68176c33fdc1c377af86.tar
MultiMC-f9791a5cc80b8e99eebd68176c33fdc1c377af86.tar.gz
MultiMC-f9791a5cc80b8e99eebd68176c33fdc1c377af86.tar.lz
MultiMC-f9791a5cc80b8e99eebd68176c33fdc1c377af86.tar.xz
MultiMC-f9791a5cc80b8e99eebd68176c33fdc1c377af86.zip
GH-1560 trim whitespace from instance name on rename
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r--application/MainWindow.cpp1
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())