mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-01 17:46:52 -04:00
fixed restoring of current item
This commit is contained in:
parent
5b8a64b677
commit
49ea154490
1 changed files with 1 additions and 1 deletions
|
@ -1679,7 +1679,7 @@ void GxsForumThreadWidget::postForumLoading()
|
||||||
if(!mThreadId.isNull() && indx.isValid())
|
if(!mThreadId.isNull() && indx.isValid())
|
||||||
{
|
{
|
||||||
QModelIndex index = mThreadProxyModel->mapFromSource(indx);
|
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;
|
std::cerr << " re-selecting index of message " << mThreadId << " to " << indx.row() << "," << indx.column() << " " << (void*)indx.internalPointer() << std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue