Transaction View: LastMonth calculation fixed
[novacoin.git] / src / qt / transactionview.cpp
index 45abb74..88b119a 100644 (file)
@@ -259,7 +259,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:
@@ -421,7 +421,7 @@ void TransactionView::showDetails()
 
         // This loop will wait for the window is closed
         QEventLoop loop;
-        connect(&dlg, SIGNAL(close()), &loop, SLOT(quit()));
+        connect(&dlg, SIGNAL(stopExec()), &loop, SLOT(quit()));
         loop.exec();
     }
 }