Commit e60a42d1 authored by JanKusanagi's avatar JanKusanagi

Fix "Get Newer" button sometimes overstaying its welcome

parent 6eda41cb
......@@ -424,7 +424,7 @@ void MinorFeed::setFeedContents(QVariantList activitiesList,
qDebug() << "Current MinorFeed prev/next links:" << m_prevLink << m_nextLink;
int activitiesListSize = activitiesList.size();
const int activitiesListSize = activitiesList.size();
int totalItemDifference = -1; // TMP FIXME; for cases where it's unknown
if (m_gettingNew)
{
......@@ -460,6 +460,13 @@ void MinorFeed::setFeedContents(QVariantList activitiesList,
m_pendingToReceiveNextTime = 0; // In case it was less than 0
m_getPendingButton->hide();
}
// Hide "Get newer" button also if for some reason it's present and we
if (activitiesListSize == 0) // confirm there's nothing else to receive
{
m_pendingToReceiveNextTime = 0;
m_getPendingButton->hide();
}
}
// Remove the separator line
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment