mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added reset to avoid crash when switching from flat to tree views
This commit is contained in:
parent
1fced4a1c3
commit
37f721f305
@ -2648,6 +2648,10 @@ void GxsForumThreadWidget::saveImage()
|
||||
|
||||
void GxsForumThreadWidget::changedViewBox()
|
||||
{
|
||||
ui->threadTreeWidget->selectionModel()->clear();
|
||||
ui->threadTreeWidget->selectionModel()->reset();
|
||||
mThreadId.clear();
|
||||
|
||||
// save index
|
||||
Settings->setValueToGroup("ForumThreadWidget", "viewBox", ui->viewBox->currentIndex());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user