From 38901ed21d74834443a8c2133192f34556f0cf1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 12 Sep 2015 03:07:41 +0200 Subject: [PATCH] NOISSUE use whole zip base filename for default instance name --- application/dialogs/NewInstanceDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {