Commit 59f67e05 authored by Michael Natterer's avatar Michael Natterer 😴

app: simpler code in view_close_cmd_callback()

parent efe01acb
......@@ -99,15 +99,13 @@ view_close_cmd_callback (GtkAction *action,
GimpDisplay *display;
GimpDisplayShell *shell;
GimpImage *image;
return_if_no_display (display, data);
shell = gimp_display_get_shell(display);
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 (! GIMP_IS_IMAGE (image) || ! gimp_image_get_active_drawable (image))
return;
if (shell)
if (shell && image)
gimp_display_shell_close (shell, FALSE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment