瀏覽代碼

Add additional empty check for the QStringList returned by the InstallDialog

Morph 6 年之前
父節點
當前提交
75a01475d1
共有 1 個文件被更改,包括 4 次插入0 次删除
  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)