1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-24 13:34:27 +00:00

Fix file list expansion on singlefile torrent with folder.

This commit is contained in:
sledgehammer999 2017-08-19 17:33:22 +03:00
parent c6dfdf9135
commit 7b5730723d
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2

View File

@ -329,7 +329,7 @@ void PropertiesWidget::loadTorrentInfos(BitTorrent::TorrentHandle *const torrent
// List files in torrent // List files in torrent
PropListModel->model()->setupModelData(m_torrent->info()); PropListModel->model()->setupModelData(m_torrent->info());
if ((m_torrent->filesCount() > 1) && (PropListModel->model()->rowCount() == 1)) if (PropListModel->model()->rowCount() == 1)
m_ui->filesList->setExpanded(PropListModel->index(0, 0), true); m_ui->filesList->setExpanded(PropListModel->index(0, 0), true);
// Load file priorities // Load file priorities