From 40acef3f70ec8295d7ca2b02bda04580c86581e7 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 13 Aug 2020 21:07:30 +0200 Subject: [PATCH] centralized forceRedraw() in boards --- .../gui/Posted/PostedListWidgetWithModel.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp b/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp index f57ddf5f0..3b6bb3c43 100644 --- a/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp +++ b/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp @@ -541,25 +541,7 @@ void PostedListWidgetWithModel::postPostLoad() void PostedListWidgetWithModel::forceRedraw() { if(mPostedPostsModel) - { -// // Save selection. This can only be done using message Ids, because the QModelIndex-es can change after deepUpdate -// -// auto lst = ui->postsTree->selectionModel()->selectedRows(); -// std::set msgs; -// -// for(auto& index: lst) -// msgs.insert(index.data(Qt::UserRole).value().mMeta.mMsgId) ; - mPostedPostsModel->deepUpdate(); - -// // Restore selection -// -// for(auto& msgId: msgs) -// ui->postsTree->selectionModel()->select(mPostedPostsModel->getIndexOfMessage(msgId), QItemSelectionModel::ClearAndSelect); -// -// update(); -// ui->postsTree->update(); - } } void PostedListWidgetWithModel::updateDisplay(bool complete)