Explorar el Código

Add additional empty check for the QStringList returned by the InstallDialog

Morph hace 6 años
padre
commit
75a01475d1
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/yuzu/main.cpp

+ 4 - 0
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)