mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Use isEmpty() instead of size() for emptiness
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user