diff --git a/src/gui/downloadfromurldlg.h b/src/gui/downloadfromurldlg.h index c422b9975..f14547797 100644 --- a/src/gui/downloadfromurldlg.h +++ b/src/gui/downloadfromurldlg.h @@ -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; } diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index be75e0edf..1b871375f 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -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"));