[Wallet] Transaction View: LastMonth calculation fixed

This commit is contained in:
crowning- 2016-01-13 21:17:08 +01:00
parent dd1304ec21
commit 30cdacea3c

View file

@ -267,7 +267,7 @@ void TransactionView::chooseDate(int idx)
break;
case LastMonth:
transactionProxyModel->setDateRange(
QDateTime(QDate(current.year(), current.month()-1, 1)),
QDateTime(QDate(current.year(), current.month(), 1).addMonths(-1)),
QDateTime(QDate(current.year(), current.month(), 1)));
break;
case ThisYear: