mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
libs: update the current date of Plasma::Calendar from Plasma::Calendar::setDate()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7b77d41a52
commit
d7d63a156b
1 changed files with 4 additions and 3 deletions
|
@ -174,9 +174,10 @@ void Calendar::setDate(const QDate &toDate)
|
|||
return;
|
||||
}
|
||||
|
||||
// If new date is the same as old date don't actually need to do anything
|
||||
if (toDate == date()) {
|
||||
return;
|
||||
// NOTE: this method is called by Plasma::ClockApplet::popupEvent() on show so updating as if
|
||||
// show event ocurred
|
||||
if (d->automaticUpdates) {
|
||||
d->currentDate = QDate::currentDate();
|
||||
}
|
||||
|
||||
d->calendarWidget->setSelectedDate(toDate);
|
||||
|
|
Loading…
Add table
Reference in a new issue