Merge pull request #7327

30cdace [Wallet] Transaction View: LastMonth calculation fixed (crowning-)
This commit is contained in:
Jonas Schnelli 2016-01-13 21:24:30 +01:00
commit c079d79c9a
No known key found for this signature in database
GPG key ID: 29D4BCB6416F53EC

View file

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