mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-05 13:19:32 -04:00
Disable follow / rate buttons, and fix time filter periods
This commit is contained in:
parent
7d8323f3e2
commit
0113aed20f
2 changed files with 5 additions and 8 deletions
|
@ -93,8 +93,8 @@ void PulseDetails::setup()
|
||||||
frame_replies->setVisible(false);
|
frame_replies->setVisible(false);
|
||||||
mHasReplies = false;
|
mHasReplies = false;
|
||||||
|
|
||||||
toolButton_follow->setEnabled(mActions != NULL);
|
toolButton_follow->setEnabled(false); // TODO
|
||||||
toolButton_rate->setEnabled(mActions != NULL);
|
toolButton_rate->setEnabled(false); // TODO
|
||||||
toolButton_reply->setEnabled(mActions != NULL);
|
toolButton_reply->setEnabled(mActions != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -556,16 +556,13 @@ rstime_t WireDialog::getFilterTimestamp()
|
||||||
switch(ui.comboBox_filterTime->currentIndex())
|
switch(ui.comboBox_filterTime->currentIndex())
|
||||||
{
|
{
|
||||||
case 1: // Last 24 Hours.
|
case 1: // Last 24 Hours.
|
||||||
// filterTimestamp -= (3600 * 24);
|
filterTimestamp -= (3600 * 24);
|
||||||
filterTimestamp -= (1800);
|
|
||||||
break;
|
break;
|
||||||
case 2: // Last 7 Days.
|
case 2: // Last 7 Days.
|
||||||
//filterTimestamp -= (3600 * 24 * 7);
|
filterTimestamp -= (3600 * 24 * 7);
|
||||||
filterTimestamp -= (3600);
|
|
||||||
break;
|
break;
|
||||||
case 3: // Last 30 Days.
|
case 3: // Last 30 Days.
|
||||||
//filterTimestamp -= (3600 * 24 * 30);
|
filterTimestamp -= (3600 * 24 * 30);
|
||||||
filterTimestamp -= (4 * 3600);
|
|
||||||
break;
|
break;
|
||||||
case 0: // All Time.
|
case 0: // All Time.
|
||||||
case -1: // no index.
|
case -1: // no index.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue