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:
parent
6767487e40
commit
08a2439f46
@ -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;
|
||||
}
|
||||
|
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user