Obsolete idx.child fix.
This commit is contained in:
parent
172dc793a8
commit
13e132f86b
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ void FeedsView::expandCollapseCurrentItem() {
|
|||
if (selectionModel()->selectedRows().size() == 1) {
|
||||
QModelIndex index = selectionModel()->selectedRows().at(0);
|
||||
|
||||
if (!index.child(0, 0).isValid() && index.parent().isValid()) {
|
||||
if (!model()->index(0, 0, index).isValid() && index.parent().isValid()) {
|
||||
setCurrentIndex(index.parent());
|
||||
index = index.parent();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue