[gnome-calendar] calendars-page: Use the passed calendar for deletion



commit e53a7532f2a597eabdc36a2a5edddcf9572968fd
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Jun 24 20:55:34 2019 -0300

    calendars-page: Use the passed calendar for deletion

 src/gui/calendar-management/gcal-calendars-page.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gui/calendar-management/gcal-calendars-page.c 
b/src/gui/calendar-management/gcal-calendars-page.c
index 01832de7..25261c99 100644
--- a/src/gui/calendar-management/gcal-calendars-page.c
+++ b/src/gui/calendar-management/gcal-calendars-page.c
@@ -185,7 +185,7 @@ delete_calendar (GcalCalendarsPage *self,
 
   g_assert (calendar != NULL);
 
-  removed_source = gcal_calendar_get_source (self->removed_calendar);
+  removed_source = gcal_calendar_get_source (calendar);
 
   /* We don't really want to remove non-removable sources */
   if (!e_source_get_removable (removed_source))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]