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/evolution-wizard.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shell/evolution-wizard.c') 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