[Wallet] Transaction View: LastMonth calculation fixed

Github-Pull: #7327
Rebased-From: 30cdacea3c356acda32ab77238f07c1c40b1f1b5
This commit is contained in:
crowning- 2016-01-13 21:17:08 +01:00 committed by MarcoFalke
parent 351ffd8482
commit a74fa1f06b

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: