Fix a braino that caused Evolution to unref a NULL object when the

shortcut file was not found.

svn path=/trunk/; revision=4272
This commit is contained in:
Ettore Perazzoli
2000-07-21 23:36:11 +00:00
parent 44230f1ef7
commit be07467191
2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2000-07-22 Ettore Perazzoli <ettore@helixcode.com>
* e-shell.c (e_shell_construct): Don't unref NULL shortcuts, you
idiot.
2000-07-22 Ettore Perazzoli <ettore@helixcode.com>
* e-shell-view.c (e_shell_view_set_folder_bar_mode): Make the

View File

@ -517,12 +517,8 @@ e_shell_construct (EShell *shell,
priv->folder_type_registry,
shortcut_path);
if (priv->shortcuts == NULL) {
gtk_object_unref (GTK_OBJECT (priv->shortcuts));
priv->shortcuts = NULL;
if (priv->shortcuts == NULL)
g_warning ("Cannot load shortcuts -- %s", shortcut_path);
}
g_free (shortcut_path);
}