-rw-r--r-- | korganizer/calendarview.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 08909ed..f179c58 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -1609,2 +1609,7 @@ bool CalendarView::importBday() #ifdef DESKTOP_VERSION + int curCal = mCalendar->defaultCalendar(); + int bd = mCalEditView->getBirtdayID(); + if ( bd == 0 ) + return; + mCalendar->setDefaultCalendar( bd ); KABC::StdAddressBook* AddressBook = KABC::StdAddressBook::self( true ); @@ -1647,2 +1652,3 @@ bool CalendarView::importBday() } + mCalendar->setDefaultCalendar( curCal ); updateView(); @@ -1668,5 +1674,13 @@ void CalendarView::insertBirthdays(const QString& uid, const QStringList& birthd { + //qDebug("KO::CalendarView::insertBirthdays"); if (uid == this->name()) - { + { + int curCal = mCalendar->defaultCalendar(); + int bd = mCalEditView->getBirtdayID(); + if ( bd == 0 ) + return; + mCalendar->setDefaultCalendar( bd ); + + int count = birthdayList.count(); @@ -1733,2 +1747,3 @@ void CalendarView::insertBirthdays(const QString& uid, const QStringList& birthd + mCalendar->setDefaultCalendar( curCal ); updateView(); |