attempt to fix default sorting in channel file list

This commit is contained in:
csoler 2020-11-28 16:51:02 +01:00
parent 2100c5511d
commit 6c13d4bf4d

View File

@ -917,7 +917,7 @@ void GxsChannelPostsWidgetWithModel::postChannelPostLoad()
navigate(mNavigatePendingMsgId);
else if( (mLastSelectedPosts.count(groupId()) > 0)
&& !mLastSelectedPosts[groupId()].isNull())
&& !mLastSelectedPosts[groupId()].isNull())
{
QModelIndex index = mChannelPostsModel->getIndexOfMessage(mLastSelectedPosts[groupId()]);
@ -937,7 +937,7 @@ void GxsChannelPostsWidgetWithModel::postChannelPostLoad()
mChannelFilesModel->setFiles(files);
ui->channelFiles_TV->setAutoSelect(true);
ui->channelFiles_TV->sortByColumn(0, Qt::AscendingOrder);
ui->channelFiles_TV->sortByColumn(3, Qt::AscendingOrder);
ui->infoPosts->setText(QString::number(mChannelPostsModel->getNumberOfPosts()) + " / " + QString::number(mGroup.mMeta.mVisibleMsgCount));