aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorcrowning- <crowning-@users.noreply.github.com>2016-01-13 21:17:08 +0100
committercrowning- <crowning-@users.noreply.github.com>2016-01-13 21:17:08 +0100
commit30cdacea3c356acda32ab77238f07c1c40b1f1b5 (patch)
tree1e88b75d5ecfd63d434ce29c5f03ae932932d600 /src/qt
parentdd1304ec216c7d4bdb302195e184b15503819f67 (diff)
[Wallet] Transaction View: LastMonth calculation fixed
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/transactionview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp
index 28928d8212..4a9a198216 100644
--- a/src/qt/transactionview.cpp
+++ b/src/qt/transactionview.cpp
@@ -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: