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:
// 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();
}
}