mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
app: view_close_cmd_callback(): no need to check the shell for != NULL
This commit is contained in:
parent
027e34230e
commit
f885085bcf
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue