app: view_close_cmd_callback(): no need to check the shell for != NULL

This commit is contained in:
Michael Natterer 2013-07-03 09:19:22 +02:00
parent 027e34230e
commit f885085bcf

View file

@ -106,8 +106,8 @@ view_close_cmd_callback (GtkAction *action,
shell = gimp_display_get_shell (display);
image = gimp_display_get_image (display);
/* Check for active image so we don't close the last display. */
if (shell && image)
/* Check for the image so we don't close the last display. */
if (image)
gimp_display_shell_close (shell, FALSE);
}