From 8b0060a21590c79923a69426da6dcbbb8a18da74 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 19 Sep 2002 01:37:46 +0000 Subject: Allow 'back' to run if we're on the finish page. For #29293. 2002-09-18 Not Zed * evolution-wizard.c (impl_GNOME_Evolution_Wizard_notifyAction): Allow 'back' to run if we're on the finish page. For #29293. svn path=/trunk/; revision=18106 --- shell/ChangeLog | 5 +++++ shell/evolution-wizard.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index c0d5935994..6e2db069d2 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2002-09-18 Not Zed + + * evolution-wizard.c (impl_GNOME_Evolution_Wizard_notifyAction): + Allow 'back' to run if we're on the finish page. For #29293. + 2002-09-17 Ettore Perazzoli * e-storage.c (e_storage_result_to_string): Add description for diff --git a/shell/evolution-wizard.c b/shell/evolution-wizard.c index 291c7ad57a..07ad4fe0b0 100644 --- a/shell/evolution-wizard.c +++ b/shell/evolution-wizard.c @@ -100,7 +100,9 @@ impl_GNOME_Evolution_Wizard_notifyAction (PortableServer_Servant servant, wizard = EVOLUTION_WIZARD (bonobo_object); priv = wizard->priv; - if (pagenumber < 0 || pagenumber >= priv->page_count) { + if (pagenumber < 0 + || pagenumber > priv->page_count + || (action != GNOME_Evolution_Wizard_BACK && pagenumber == priv->page_count)) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_GNOME_Evolution_Wizard_NoPage, NULL); return; -- cgit v1.2.3