mirror of
https://github.com/transmission/transmission
synced 2025-03-10 22:22:58 +00:00
Fix tr_torrent_view incorrectly returning is_folder false for single files in a single folder (#4454)
This commit is contained in:
parent
3cee8bae36
commit
559b759ea0
1 changed files with 1 additions and 1 deletions
|
@ -1153,7 +1153,7 @@ tr_torrent_view tr_torrentView(tr_torrent const* tor)
|
|||
ret.piece_size = tor->pieceSize();
|
||||
ret.n_pieces = tor->pieceCount();
|
||||
ret.is_private = tor->isPrivate();
|
||||
ret.is_folder = tor->fileCount() > 1;
|
||||
ret.is_folder = tor->fileCount() > 1 || (tor->fileCount() == 1 && tr_strvContains(tor->fileSubpath(0), '/'));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue