diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2008-12-15 14:18:47 +0000 |
---|---|---|
committer | Tomas Bzatek <tbzatek@src.gnome.org> | 2008-12-15 14:18:47 +0000 |
commit | fa74fc0583267c0a67cc43e61633ab84760a4df3 (patch) | |
tree | c9427004ffa5f8c4b73ad202d6b0cc1d79065cbf | |
parent | 951ce340b4cf73040014b91e833e39e99c4cfa63 (diff) | |
download | nautilus-fa74fc0583267c0a67cc43e61633ab84760a4df3.tar.gz |
Fix new windows not appearing after successful mount (needed for #524485)
2008-12-15 Tomas Bzatek <tbzatek@redhat.com>
* libnautilus-private/nautilus-mime-actions.c:
(activation_mount_not_mounted):
Fix new windows not appearing after successful mount
(needed for #524485)
svn path=/trunk/; revision=14813
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | libnautilus-private/nautilus-mime-actions.c | 9 |
2 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2008-12-15 Tomas Bzatek <tbzatek@redhat.com> + + * libnautilus-private/nautilus-mime-actions.c: + (activation_mount_not_mounted): + Fix new windows not appearing after successful mount + (needed for #524485) + 2008-12-12 A. Walton <awalton@gnome.org> * libnautilus-private/nautilus-mime-actions.c diff --git a/libnautilus-private/nautilus-mime-actions.c b/libnautilus-private/nautilus-mime-actions.c index 33481d555..6794e5562 100644 --- a/libnautilus-private/nautilus-mime-actions.c +++ b/libnautilus-private/nautilus-mime-actions.c @@ -1540,6 +1540,7 @@ activation_mount_not_mounted (ActivateParameters *parameters) NautilusFile *file; GFile *location; GMountOperation *mount_op; + GList *l, *next; if (parameters->not_mounted != NULL) { file = parameters->not_mounted->data; @@ -1562,6 +1563,14 @@ activation_mount_not_mounted (ActivateParameters *parameters) return; } + /* once the mount is finished, refresh all attributes */ + /* - fixes new windows not appearing after successful mount */ + for (l = parameters->files; l != NULL; l = next) { + file = NAUTILUS_FILE (l->data); + next = l->next; + nautilus_file_invalidate_all_attributes (file); + } + nautilus_file_list_call_when_ready (parameters->files, nautilus_mime_actions_get_required_file_attributes () | NAUTILUS_FILE_ATTRIBUTE_LINK_INFO, |