mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 08:29:26 -05:00
insert the newest channel posts first and the oldest last (modified patch from Eugene Tooms)
This commit is contained in:
parent
8a41554754
commit
69f6bd0ea9
@ -398,7 +398,7 @@ void GxsChannelPostsWidget::insertChannelPosts(std::vector<RsGxsChannelPost> &po
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<RsGxsChannelPost>::const_iterator it;
|
||||
std::vector<RsGxsChannelPost>::const_reverse_iterator it;
|
||||
|
||||
int count = posts.size();
|
||||
int pos = 0;
|
||||
@ -407,7 +407,7 @@ void GxsChannelPostsWidget::insertChannelPosts(std::vector<RsGxsChannelPost> &po
|
||||
ui->feedWidget->setSortingEnabled(false);
|
||||
}
|
||||
|
||||
for (it = posts.begin(); it != posts.end(); ++it)
|
||||
for (it = posts.rbegin(); it != posts.rend(); ++it)
|
||||
{
|
||||
if (thread && thread->stopped()) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user