mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-19 10:39:53 -05:00
Replaced deprecated QModelIndex::child by QAbstractItemModel::index
This commit is contained in:
parent
c00a4dccb5
commit
ec497f0015
4 changed files with 6 additions and 6 deletions
|
|
@ -1018,7 +1018,7 @@ void SharedFilesDialog::recursExpandAll(const QModelIndex& index)
|
|||
|
||||
for(int row=0;row<ui.dirTreeView->model()->rowCount(index);++row)
|
||||
{
|
||||
QModelIndex idx(index.child(row,0)) ;
|
||||
QModelIndex idx(ui.dirTreeView->model()->index(row,0,index)) ;
|
||||
|
||||
if(ui.dirTreeView->model()->rowCount(idx) > 0)
|
||||
recursExpandAll(idx) ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue