1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

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
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
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;
}

View File

@ -660,7 +660,7 @@ void PropertiesWidget::displayWebSeedListMenu(const QPoint &)
QAction *actCpy = nullptr;
QAction *actEdit = nullptr;
if (rows.size()) {
if (!rows.isEmpty()) {
actDel = seedMenu.addAction(GuiIconProvider::instance()->getIcon("list-remove"), tr("Remove Web seed"));
seedMenu.addSeparator();
actCpy = seedMenu.addAction(GuiIconProvider::instance()->getIcon("edit-copy"), tr("Copy Web seed URL"));