added reset to avoid crash when switching from flat to tree views

This commit is contained in:
csoler 2018-12-02 16:07:28 +01:00
parent 1fced4a1c3
commit 37f721f305
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -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());