Add additional empty check for the QStringList returned by the InstallDialog

merge-requests/60/head
Morph 2020-07-08 13:01:25 +07:00
parent 6d8d7ebc66
commit 75a01475d1
1 changed files with 4 additions and 0 deletions

@ -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)