mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Use isEmpty() instead of size() for emptiness
This commit is contained in:
parent
d8cbc9266a
commit
400792d18e
6 changed files with 7 additions and 7 deletions
|
@ -878,7 +878,7 @@ void TransferListWidget::clearSelectionTags()
|
|||
void TransferListWidget::displayListMenu(const QPoint&)
|
||||
{
|
||||
const QModelIndexList selectedIndexes = selectionModel()->selectedRows();
|
||||
if (selectedIndexes.size() == 0) return;
|
||||
if (selectedIndexes.isEmpty()) return;
|
||||
|
||||
// Create actions
|
||||
QAction actionStart(GuiIconProvider::instance()->getIcon("media-playback-start"), tr("Resume", "Resume/start the torrent"), nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue