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
This commit is contained in:
Yash Singh
2017-07-24 11:44:37 -03:00
committed by Georges Basile Stavracas Neto
parent a22bec6de3
commit 81ce012ed7
-2
View File
@@ -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));