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



commit f885085bcf4b083c1bc00081099129b3b3913066
Author: Michael Natterer <mitch gimp org>
Date:   Wed Jul 3 09:19:22 2013 +0200

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

 app/actions/view-commands.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/actions/view-commands.c b/app/actions/view-commands.c
index 07686a8..f90a53f 100644
--- a/app/actions/view-commands.c
+++ b/app/actions/view-commands.c
@@ -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);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]