mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04: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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<RsGxsChannelPost>::const_iterator it;
|
std::vector<RsGxsChannelPost>::const_reverse_iterator it;
|
||||||
|
|
||||||
int count = posts.size();
|
int count = posts.size();
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
@ -407,7 +407,7 @@ void GxsChannelPostsWidget::insertChannelPosts(std::vector<RsGxsChannelPost> &po
|
|||||||
ui->feedWidget->setSortingEnabled(false);
|
ui->feedWidget->setSortingEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (it = posts.begin(); it != posts.end(); ++it)
|
for (it = posts.rbegin(); it != posts.rend(); ++it)
|
||||||
{
|
{
|
||||||
if (thread && thread->stopped()) {
|
if (thread && thread->stopped()) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user