Merge lp:~rodrigo-moya/ubuntuone-client/fix-661292 into lp:ubuntuone-client/stable-1-4

Proposed by Rodrigo Moya
Status: Merged
Approved by: dobey
Approved revision: 736
Merged at revision: 736
Proposed branch: lp:~rodrigo-moya/ubuntuone-client/fix-661292
Merge into: lp:ubuntuone-client/stable-1-4
Diff against target: 35 lines (+2/-2)
1 file modified
nautilus/ubuntuone-nautilus.c (+2/-2)
To merge this branch: bzr merge lp:~rodrigo-moya/ubuntuone-client/fix-661292
Reviewer Review Type Date Requested Status
dobey (community) Approve
Matt Griffin (community) Approve
Review via email: mp+38703@code.launchpad.net

Commit message

Only mark public files list as retrieved when really retrieved

Description of the change

Only mark public files list as retrieved when really retrieved

To post a comment you must log in.
Revision history for this message
Matt Griffin (mattgriffin) wrote :

Tested and it works. The correct right-click options are appearing for published files. Approved. Thanks!

review: Approve
Revision history for this message
dobey (dobey) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'nautilus/ubuntuone-nautilus.c'
2--- nautilus/ubuntuone-nautilus.c 2010-09-28 13:11:31 +0000
3+++ nautilus/ubuntuone-nautilus.c 2010-10-18 10:17:43 +0000
4@@ -1065,7 +1065,6 @@
5 public = syncdaemon_daemon_get_publicfiles_interface (uon->syncdaemon);
6 if (public != NULL) {
7 syncdaemon_publicfiles_interface_get_public_files (SYNCDAEMON_PUBLICFILES_INTERFACE (public));
8- uon->gotpubs = TRUE;
9 }
10 }
11 }
12@@ -1209,7 +1208,6 @@
13 g_hash_table_replace (uon->public, g_strdup (path), g_strdup (url));
14
15 ubuntuone_nautilus_reset_emblem (uon, path);
16- uon->gotpubs = TRUE;
17 }
18
19 static void ubuntuone_nautilus_got_public_files (SyncdaemonDaemon *daemon,
20@@ -1222,6 +1220,7 @@
21 if (success) {
22 GSList *l;
23
24+ uon->gotpubs = TRUE;
25 g_hash_table_remove_all (uon->public);
26 for (l = files; l != NULL; l = l->next) {
27 SyncdaemonFileInfo *finfo = SYNCDAEMON_FILE_INFO (l->data);
28@@ -1229,6 +1228,7 @@
29 g_hash_table_insert (uon->public,
30 g_strdup (syncdaemon_file_info_get_path (finfo)),
31 g_strdup (syncdaemon_file_info_get_public_url (finfo)));
32+ ubuntuone_nautilus_reset_emblem (uon, syncdaemon_file_info_get_path (finfo));
33 }
34 }
35 }

Subscribers

People subscribed via source and target branches