summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Morph2020-07-08 13:01:25 -0400
committerGravatar Morph2020-07-10 00:38:29 -0400
commit75a01475d174a8dbea7dcf41002cb53abce1d8bb (patch)
tree306cf429e43fb9c9272b31e6a44e71c37b0e8fcc /src
parentUpdate the install and progress dialogs (diff)
downloadyuzu-75a01475d174a8dbea7dcf41002cb53abce1d8bb.tar.gz
yuzu-75a01475d174a8dbea7dcf41002cb53abce1d8bb.tar.xz
yuzu-75a01475d174a8dbea7dcf41002cb53abce1d8bb.zip
Add additional empty check for the QStringList returned by the InstallDialog
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 8a57e34c7..432379705 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1621,6 +1621,10 @@ void GMainWindow::OnMenuInstallToNAND() {
1621 1621
1622 const QStringList files = installDialog.GetFiles(); 1622 const QStringList files = installDialog.GetFiles();
1623 1623
1624 if (files.isEmpty()) {
1625 return;
1626 }
1627
1624 int remaining = filenames.size(); 1628 int remaining = filenames.size();
1625 1629
1626 // This would only overflow above 2^43 bytes (8.796 TB) 1630 // This would only overflow above 2^43 bytes (8.796 TB)