Tomas Bzatek 60c2440
Index: libnautilus-private/nautilus-mime-actions.c
Tomas Bzatek 60c2440
===================================================================
Tomas Bzatek 60c2440
--- libnautilus-private/nautilus-mime-actions.c	(revision 14785)
Tomas Bzatek 60c2440
+++ libnautilus-private/nautilus-mime-actions.c	(working copy)
Tomas Bzatek 60c2440
@@ -1327,6 +1327,7 @@
Tomas Bzatek 60c2440
 	NautilusFile *file;
Tomas Bzatek 60c2440
 	GFile *location;
Tomas Bzatek 60c2440
 	GMountOperation *mount_op;
Tomas Bzatek 60c2440
+	GList *l, *next;
Tomas Bzatek 60c2440
 
Tomas Bzatek 60c2440
 	if (parameters->not_mounted != NULL) {
Tomas Bzatek 60c2440
 		file = parameters->not_mounted->data;
Tomas Bzatek 60c2440
@@ -1348,6 +1349,14 @@
Tomas Bzatek 60c2440
 		return;
Tomas Bzatek 60c2440
 	}
Tomas Bzatek 60c2440
 	
Tomas Bzatek 60c2440
+	/*  once the mount is finished, refresh all attributes        */
Tomas Bzatek 60c2440
+	/*  - fixes new windows not appearing after successful mount  */
Tomas Bzatek 60c2440
+	for (l = parameters->files; l != NULL; l = next) {
Tomas Bzatek 60c2440
+		file = NAUTILUS_FILE (l->data);
Tomas Bzatek 60c2440
+		next = l->next;
Tomas Bzatek 60c2440
+		nautilus_file_invalidate_all_attributes (file);
Tomas Bzatek 60c2440
+	}
Tomas Bzatek 60c2440
+	
Tomas Bzatek 60c2440
 	nautilus_file_list_call_when_ready
Tomas Bzatek 60c2440
 		(parameters->files,
Tomas Bzatek 60c2440
 		 nautilus_mime_actions_get_required_file_attributes () | NAUTILUS_FILE_ATTRIBUTE_LINK_INFO,