Fixes NB#125952, modality issue when trying to open a new editor after the "lose...
[modest] / src / hildon2 / modest-hildon2-window-mgr.c
index 3922dd6..21f35e8 100644 (file)
@@ -862,7 +862,8 @@ look_for_transient (gconstpointer a,
        child = (GtkWindow *) b;
        win = (GtkWindow *) a;
 
-       if (gtk_window_get_transient_for (win) == child)
+       if ((gtk_window_get_transient_for (win) == child) &&
+           GTK_WIDGET_VISIBLE (win))
                return 0;
        else
                return 1;