NOISSUE use whole zip base filename for default instance name

This commit is contained in:
Petr Mrázek 2015-09-12 03:07:41 +02:00
parent ec3472f21d
commit 38901ed21d

View File

@ -112,7 +112,7 @@ void NewInstanceDialog::updateDialogState()
{ {
auto url = QUrl::fromUserInput(ui->modpackEdit->text()); auto url = QUrl::fromUserInput(ui->modpackEdit->text());
QFileInfo fi(url.fileName()); QFileInfo fi(url.fileName());
suggestedName = fi.baseName(); suggestedName = fi.completeBaseName();
} }
if(suggestedName.isEmpty()) if(suggestedName.isEmpty())
{ {