[gimp/gimp-2-8] app - call to keep the active shell in single window mode switch out of loop.



commit f7fe056e1968c151795be40aa04807b5f06ccedf
Author: Jehan <jehan girinstud io>
Date:   Mon Jul 8 21:19:01 2013 +0900

    app - call to keep the active shell in single window mode switch out of loop.
    
    Small fix from commit 2697b29. This previous commit was working well, but
    implied calling this method as many time as there are opened shells,
    whereas once is enough.
    (cherry picked from commit 8ef5fca0622447b7f36afd17e93248c754216572)

 app/gui/gimpuiconfigurer.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/gui/gimpuiconfigurer.c b/app/gui/gimpuiconfigurer.c
index c25a016..dcae42e 100644
--- a/app/gui/gimpuiconfigurer.c
+++ b/app/gui/gimpuiconfigurer.c
@@ -494,13 +494,13 @@ gimp_ui_configurer_configure_for_single_window (GimpUIConfigurer *ui_configurer)
       gimp_ui_configurer_move_shells (ui_configurer,
                                       image_window,
                                       uber_image_window);
-      /* Ensure the context shell remains active after mode switch. */
-      gimp_image_window_set_active_shell (uber_image_window, active_shell);
-
       /* Destroy the window */
       gimp_image_window_destroy (image_window);
     }
 
+  /* Ensure the context shell remains active after mode switch. */
+  gimp_image_window_set_active_shell (uber_image_window, active_shell);
+
   g_list_free (windows);
 }
 


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