Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Add additional empty check for the QStringList returned by the InstallDialog

Morph4bf2b55e6750
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 8a57e34c71..4323797050 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1621,6 +1621,10 @@ void GMainWindow::OnMenuInstallToNAND() {
const QStringList files = installDialog.GetFiles();
+ if (files.isEmpty()) {
+ return;
+ }
+
int remaining = filenames.size();
// This would only overflow above 2^43 bytes (8.796 TB)