summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-07-08 19:01:25 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-07-10 06:38:29 +0200
commit75a01475d174a8dbea7dcf41002cb53abce1d8bb (patch)
tree306cf429e43fb9c9272b31e6a44e71c37b0e8fcc
parentUpdate the install and progress dialogs (diff)
downloadyuzu-75a01475d174a8dbea7dcf41002cb53abce1d8bb.tar
yuzu-75a01475d174a8dbea7dcf41002cb53abce1d8bb.tar.gz
yuzu-75a01475d174a8dbea7dcf41002cb53abce1d8bb.tar.bz2
yuzu-75a01475d174a8dbea7dcf41002cb53abce1d8bb.tar.lz
yuzu-75a01475d174a8dbea7dcf41002cb53abce1d8bb.tar.xz
yuzu-75a01475d174a8dbea7dcf41002cb53abce1d8bb.tar.zst
yuzu-75a01475d174a8dbea7dcf41002cb53abce1d8bb.zip
-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() {
const QStringList files = installDialog.GetFiles();
+ if (files.isEmpty()) {
+ return;
+ }
+
int remaining = filenames.size();
// This would only overflow above 2^43 bytes (8.796 TB)