mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 05:31:25 -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
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue