mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
more userfriendly history load dialog
This commit is contained in:
parent
56e9f6f1be
commit
017c59bd82
|
@ -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