fix: *sigh* no implicit QString->QFileInfo conversion in Qt6, again...

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2022-12-30 19:27:26 -07:00
parent 03b75bf2a9
commit 30b01ef053

View File

@ -1851,27 +1851,27 @@ void MainWindow::processURLs(QList<QUrl> urls)
switch (type) { switch (type) {
case PackedResourceType::ResourcePack: case PackedResourceType::ResourcePack:
minecraftInst->resourcePackList()->installResource(localFileName); minecraftInst->resourcePackList()->installResource(localFileName);
break; break;
case PackedResourceType::TexturePack: case PackedResourceType::TexturePack:
minecraftInst->texturePackList()->installResource(localFileName); minecraftInst->texturePackList()->installResource(localFileName);
break; break;
case PackedResourceType::DataPack: case PackedResourceType::DataPack:
qWarning() << "Importing of Data Packs not supported at this time. Ignoring" << localFileName; qWarning() << "Importing of Data Packs not supported at this time. Ignoring" << localFileName;
break; break;
case PackedResourceType::Mod: case PackedResourceType::Mod:
minecraftInst->loaderModList()->installMod(localFileName); minecraftInst->loaderModList()->installMod(localFileName);
break; break;
case PackedResourceType::ShaderPack: case PackedResourceType::ShaderPack:
minecraftInst->shaderPackList()->installResource(localFileName); minecraftInst->shaderPackList()->installResource(localFileName);
break; break;
case PackedResourceType::WorldSave: case PackedResourceType::WorldSave:
minecraftInst->worldList()->installWorld(localFileName); minecraftInst->worldList()->installWorld(localFileInfo);
break; break;
case PackedResourceType::UNKNOWN: case PackedResourceType::UNKNOWN:
default: default:
qDebug() << "Can't Identify" << localFileName << "Ignoring it."; qDebug() << "Can't Identify" << localFileName << "Ignoring it.";
break; break;
} }
} }
} }