fixed restoring of current item

This commit is contained in:
csoler 2018-12-06 23:18:56 +01:00
parent 5b8a64b677
commit 49ea154490
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -1679,7 +1679,7 @@ void GxsForumThreadWidget::postForumLoading()
if(!mThreadId.isNull() && indx.isValid())
{
QModelIndex index = mThreadProxyModel->mapFromSource(indx);
ui->threadTreeWidget->selectionModel()->select(index,QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
ui->threadTreeWidget->selectionModel()->setCurrentIndex(index,QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
std::cerr << " re-selecting index of message " << mThreadId << " to " << indx.row() << "," << indx.column() << " " << (void*)indx.internalPointer() << std::endl;
}