From 1e146c94bd589017faa4dd3b7f01b8cdc798bd39 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sat, 19 Aug 2017 17:33:22 +0300 Subject: [PATCH] Fix file list expansion on singlefile torrent with folder. --- src/gui/properties/propertieswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index 2eeff516a..16ed3be33 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -329,7 +329,7 @@ void PropertiesWidget::loadTorrentInfos(BitTorrent::TorrentHandle *const torrent // List files in torrent 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); // Load file priorities