mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Use isEmpty() instead of size() for emptiness
This commit is contained in:
@@ -124,7 +124,7 @@ PreviewSelectDialog::~PreviewSelectDialog()
|
||||
void PreviewSelectDialog::previewButtonClicked()
|
||||
{
|
||||
QModelIndexList selectedIndexes = previewList->selectionModel()->selectedRows(FILE_INDEX);
|
||||
if (selectedIndexes.size() == 0) return;
|
||||
if (selectedIndexes.isEmpty()) return;
|
||||
|
||||
// Flush data
|
||||
m_torrent->flushCache();
|
||||
|
||||
Reference in New Issue
Block a user