From 81ce012ed7d1e0f841ad9017a541a8a71b04a9c9 Mon Sep 17 00:00:00 2001 From: Yash Singh Date: Sat, 15 Jul 2017 00:14:23 +0530 Subject: [PATCH] edit-dialog: remove unused spin_button_set_value The number_of_occurrences was forcefully set to 0, due to spin_button_set_value being placed incorrectly. When a recurring event with limit_type as GCAL_RECURRENCE_COUNT, having some 'x' number of recurrences was opened in the edit-dialog, it showed '0' as number_of_occurrences in place of 'x', which is incorrect. This patch removes this unnecessary line of code and leads to correct assignment of number_of_occurrences. https://bugzilla.gnome.org/show_bug.cgi?id=782755 --- src/gcal-edit-dialog.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c index 551cdf29..b198d51f 100644 --- a/src/gcal-edit-dialog.c +++ b/src/gcal-edit-dialog.c @@ -1381,8 +1381,6 @@ gcal_edit_dialog_set_event (GcalEditDialog *dialog, /* recurrence_changed */ dialog->recurrence_changed = FALSE; - gtk_adjustment_set_value (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (dialog->number_of_occurrences_spin)), 0); - /* location */ gtk_entry_set_text (GTK_ENTRY (dialog->location_entry), gcal_event_get_location (event));