mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr983'
This commit is contained in:
commit
2cf08dca4d
|
@ -32,5 +32,11 @@ LoadHistoryDialog::~LoadHistoryDialog()
|
|||
QDateTime LoadHistoryDialog::getFromDate()
|
||||
{
|
||||
QDateTime res(ui->fromDate->selectedDate());
|
||||
if (res.date().month() != ui->fromDate->monthShown() || res.date().year() != ui->fromDate->yearShown())
|
||||
{
|
||||
QDate newDate(ui->fromDate->yearShown(), ui->fromDate->monthShown(), 1);
|
||||
res.setDate(newDate);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user