diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 5 | ||||
-rw-r--r-- | shell/e-shell.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 904b7e342a..878ead2a0a 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2000-06-29 Peter Williams <peter@beta.newton.cx> + + * e-shell.c (e_shell_restore_from_settings): Check for the + insanely invalid NumberOfViews = 0 case. + 2000-06-29 Peter Williams <peter@helixcode.com> * e-shell.c (e_shell_construct): Ref the various E-things that diff --git a/shell/e-shell.c b/shell/e-shell.c index 25a7d5903a..3cf7043183 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -644,7 +644,9 @@ e_shell_restore_from_settings (EShell *shell) gconf_error_destroy (err); return FALSE; } - + if (num_views == 0) + return FALSE; + retval = TRUE; for (i = 0; i < num_views; i++) { |