diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-05-04 00:31:27 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-05-04 00:31:27 +0200 |
commit | f9791a5cc80b8e99eebd68176c33fdc1c377af86 (patch) | |
tree | 1daeb9e1702fe0879daedd5a03e242bb22652c52 /application | |
parent | 603b0408aba4c7d0a5e6b5d4a052068572fbc80f (diff) | |
download | MultiMC-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')
-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()) |