Browse Source

Check directly if container is empty or not

adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
08a2439f46
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/gui/downloadfromurldlg.h
  2. 2
      src/gui/properties/propertieswidget.cpp

2
src/gui/downloadfromurldlg.h

@ -107,7 +107,7 @@ class downloadFromURL : public QDialog, private Ui::downloadFromURL @@ -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;
}

2
src/gui/properties/propertieswidget.cpp

@ -660,7 +660,7 @@ void PropertiesWidget::displayWebSeedListMenu(const QPoint &) @@ -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…
Cancel
Save