summaryrefslogtreecommitdiffstats
path: root/application/dialogs/NewInstanceDialog.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-09-12 03:07:41 +0200
committerPetr Mrázek <peterix@gmail.com>2015-09-12 03:07:41 +0200
commit38901ed21d74834443a8c2133192f34556f0cf1e (patch)
tree9bdf6504f116a6f727e1c16ce78af3c20bf51d95 /application/dialogs/NewInstanceDialog.cpp
parentec3472f21dbccc352964e875223b2314b233d761 (diff)
downloadMultiMC-38901ed21d74834443a8c2133192f34556f0cf1e.tar
MultiMC-38901ed21d74834443a8c2133192f34556f0cf1e.tar.gz
MultiMC-38901ed21d74834443a8c2133192f34556f0cf1e.tar.lz
MultiMC-38901ed21d74834443a8c2133192f34556f0cf1e.tar.xz
MultiMC-38901ed21d74834443a8c2133192f34556f0cf1e.zip
NOISSUE use whole zip base filename for default instance name
Diffstat (limited to 'application/dialogs/NewInstanceDialog.cpp')
-rw-r--r--application/dialogs/NewInstanceDialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/dialogs/NewInstanceDialog.cpp b/application/dialogs/NewInstanceDialog.cpp
index 658302a8..0360f5f1 100644
--- a/application/dialogs/NewInstanceDialog.cpp
+++ b/application/dialogs/NewInstanceDialog.cpp
@@ -112,7 +112,7 @@ void NewInstanceDialog::updateDialogState()
{
auto url = QUrl::fromUserInput(ui->modpackEdit->text());
QFileInfo fi(url.fileName());
- suggestedName = fi.baseName();
+ suggestedName = fi.completeBaseName();
}
if(suggestedName.isEmpty())
{