mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
check the selected calendar date before setting it from QDateTimeEditPrivate::updateWidgets()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
6558a31ae6
commit
618b188016
1 changed files with 4 additions and 1 deletions
|
@ -172,7 +172,10 @@ void QDateTimeEditPrivate::updateWidgets(const QDateTime &datetime)
|
|||
|
||||
if (m_showdate) {
|
||||
const QDate curdate = datetime.date();
|
||||
calendarwidget->setSelectedDate(curdate);
|
||||
// check in case the calendar is on different page
|
||||
if (calendarwidget->selectedDate() != curdate) {
|
||||
calendarwidget->setSelectedDate(curdate);
|
||||
}
|
||||
updateButton(curdate);
|
||||
}
|
||||
if (m_showtime) {
|
||||
|
|
Loading…
Add table
Reference in a new issue