Skip to content

Commit

Permalink
setup read-only flag of mKCal::Notebook when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Karry committed Mar 16, 2024
1 parent 9ef4d77 commit 0d36916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/google-calendars/googlecalendarsyncadaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2448,7 +2448,7 @@ void GoogleCalendarSyncAdaptor::setCalendarProperties(
const QString &syncProfile,
const QString &ownerEmail)
{
notebook->setIsReadOnly(false);
notebook->setIsReadOnly(calendarInfo.access == GoogleCalendarSyncAdaptor::Reader || calendarInfo.access == GoogleCalendarSyncAdaptor::FreeBusyReader);
notebook->setName(calendarInfo.summary);
notebook->setDescription(calendarInfo.description);
notebook->setPluginName(QStringLiteral("google"));
Expand Down

0 comments on commit 0d36916

Please sign in to comment.