소스 검색

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)