mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-27 15:57:08 -05:00
added "Loading..." message when loading posts in channels
This commit is contained in:
parent
a1c33bf172
commit
d143355a09
@ -901,7 +901,10 @@ void GxsChannelPostsWidgetWithModel::updateGroupData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
mGroup = group;
|
mGroup = group;
|
||||||
mChannelPostsModel->updateChannel(groupId());
|
|
||||||
|
ui->postsTree->setPlaceholderText(tr("Loading..."));
|
||||||
|
|
||||||
|
mChannelPostsModel->updateChannel(groupId());
|
||||||
whileBlocking(ui->filterLineEdit)->clear();
|
whileBlocking(ui->filterLineEdit)->clear();
|
||||||
whileBlocking(ui->showUnread_TB)->setChecked(false);
|
whileBlocking(ui->showUnread_TB)->setChecked(false);
|
||||||
|
|
||||||
@ -944,6 +947,9 @@ void GxsChannelPostsWidgetWithModel::postChannelPostLoad()
|
|||||||
ui->channelFiles_TV->sortByColumn(ui->channelFiles_TV->header()->sortIndicatorSection()
|
ui->channelFiles_TV->sortByColumn(ui->channelFiles_TV->header()->sortIndicatorSection()
|
||||||
,ui->channelFiles_TV->header()->sortIndicatorOrder());
|
,ui->channelFiles_TV->header()->sortIndicatorOrder());
|
||||||
|
|
||||||
|
// if there's no posts, this is what's going to be displayed.
|
||||||
|
ui->postsTree->setPlaceholderText(tr("No posts available in this channel."));
|
||||||
|
|
||||||
ui->infoPosts->setText(QString::number(mChannelPostsModel->getNumberOfPosts()) + " / " + QString::number(mGroup.mMeta.mVisibleMsgCount));
|
ui->infoPosts->setText(QString::number(mChannelPostsModel->getNumberOfPosts()) + " / " + QString::number(mGroup.mMeta.mVisibleMsgCount));
|
||||||
|
|
||||||
// now compute aspect ratio for posts. We do that by looking at the 5 latest posts and compute the best aspect ratio for them.
|
// now compute aspect ratio for posts. We do that by looking at the 5 latest posts and compute the best aspect ratio for them.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user