aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2022-12-30 19:27:26 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-01-07 15:04:23 -0700
commit30b01ef053df670dc2d1912d88a8e9ded46c3c5e (patch)
tree5163885c192d3869ba02df93d11b92aed6a39fcb /launcher/ui
parent03b75bf2a98edd4114be4799f974bb10fe9b82c4 (diff)
downloadPrismLauncher-30b01ef053df670dc2d1912d88a8e9ded46c3c5e.tar.gz
PrismLauncher-30b01ef053df670dc2d1912d88a8e9ded46c3c5e.tar.bz2
PrismLauncher-30b01ef053df670dc2d1912d88a8e9ded46c3c5e.zip
fix: *sigh* no implicit QString->QFileInfo conversion in Qt6, again...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/ui')
-rw-r--r--launcher/ui/MainWindow.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
index 1d2e44e5..6412728a 100644
--- a/launcher/ui/MainWindow.cpp
+++ b/launcher/ui/MainWindow.cpp
@@ -1851,27 +1851,27 @@ void MainWindow::processURLs(QList<QUrl> urls)
switch (type) {
case PackedResourceType::ResourcePack:
- minecraftInst->resourcePackList()->installResource(localFileName);
- break;
+ minecraftInst->resourcePackList()->installResource(localFileName);
+ break;
case PackedResourceType::TexturePack:
- minecraftInst->texturePackList()->installResource(localFileName);
- break;
+ minecraftInst->texturePackList()->installResource(localFileName);
+ break;
case PackedResourceType::DataPack:
- qWarning() << "Importing of Data Packs not supported at this time. Ignoring" << localFileName;
- break;
+ qWarning() << "Importing of Data Packs not supported at this time. Ignoring" << localFileName;
+ break;
case PackedResourceType::Mod:
- minecraftInst->loaderModList()->installMod(localFileName);
- break;
+ minecraftInst->loaderModList()->installMod(localFileName);
+ break;
case PackedResourceType::ShaderPack:
- minecraftInst->shaderPackList()->installResource(localFileName);
- break;
+ minecraftInst->shaderPackList()->installResource(localFileName);
+ break;
case PackedResourceType::WorldSave:
- minecraftInst->worldList()->installWorld(localFileName);
- break;
+ minecraftInst->worldList()->installWorld(localFileInfo);
+ break;
case PackedResourceType::UNKNOWN:
default:
- qDebug() << "Can't Identify" << localFileName << "Ignoring it.";
- break;
+ qDebug() << "Can't Identify" << localFileName << "Ignoring it.";
+ break;
}
}
}