--- gimp-2.6.7/app/dialogs/file-open-dialog.c	2008-10-08 23:15:59.000000000 +0200
+++ app/dialogs/file-open-dialog.c	2009-08-19 12:52:46.000000000 +0200
@@ -170,7 +170,8 @@ file_open_dialog_response (GtkWidget *op
             {
               success = TRUE;
 
-              gdk_window_raise (open_dialog->window);
+              if (g_slist_next (list))
+                gdk_window_raise (open_dialog->window);
             }
         }
 
@@ -183,6 +184,7 @@ file_open_dialog_response (GtkWidget *op
       if (dialog->open_as_layers && dialog->image)
         gimp_image_flush (dialog->image);
 
+      gtk_window_set_transient_for (GTK_WINDOW (open_dialog), NULL);
       gtk_widget_destroy (open_dialog);
     }
   else
