mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Transaction View: LastMonth calculation fixed
This commit is contained in:
parent
2491e2af3e
commit
af4bc47a9b
@ -281,9 +281,16 @@ void TransactionView::chooseDate(int idx)
|
||||
TransactionFilterProxy::MAX_DATE);
|
||||
break;
|
||||
case LastMonth:
|
||||
transactionProxyModel->setDateRange(
|
||||
if (current.month() == 1){
|
||||
transactionProxyModel->setDateRange(
|
||||
QDateTime(QDate(current.year()-1, 12, 1)),
|
||||
QDateTime(QDate(current.year(), current.month(), 1)));
|
||||
}
|
||||
else {
|
||||
transactionProxyModel->setDateRange(
|
||||
QDateTime(QDate(current.year(), current.month()-1, 1)),
|
||||
QDateTime(QDate(current.year(), current.month(), 1)));
|
||||
}
|
||||
break;
|
||||
case ThisYear:
|
||||
transactionProxyModel->setDateRange(
|
||||
|
Loading…
Reference in New Issue
Block a user