Check directly if container is empty or not

This commit is contained in:
Chocobo1
2018-03-11 23:09:52 +08:00
parent 6767487e40
commit 08a2439f46
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ class downloadFromURL : public QDialog, private Ui::downloadFromURL
}
}
}
if (!url_list_cleaned.size()) {
if (url_list_cleaned.isEmpty()) {
QMessageBox::warning(this, tr("No URL entered"), tr("Please type at least one URL."));
return;
}