Make sure the root folder is expanded in Torrent content panel

This commit is contained in:
Christophe Dumez 2012-07-02 19:27:39 +03:00
commit b095a1e3fe

View file

@ -259,6 +259,7 @@ void PropertiesWidget::loadTorrentInfos(const QTorrentHandle &_h) {
loadUrlSeeds(); loadUrlSeeds();
// List files in torrent // List files in torrent
PropListModel->model()->setupModelData(h.get_torrent_info()); PropListModel->model()->setupModelData(h.get_torrent_info());
filesList->setExpanded(PropListModel->index(0, 0), true);
} }
} catch(invalid_handle& e) { } catch(invalid_handle& e) {