projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d37c53
)
Fixes NB#140509, sync() currently viewed folder on send&receive even with auto-updates
author
Sergio Villar Senin
<svillar@igalia.com>
Fri, 30 Oct 2009 09:00:03 +0000
(10:00 +0100)
committer
Sergio Villar Senin
<svillar@igalia.com>
Mon, 2 Nov 2009 09:32:40 +0000
(10:32 +0100)
src/modest-ui-actions.c
patch
|
blob
|
history
diff --git
a/src/modest-ui-actions.c
b/src/modest-ui-actions.c
index
e80359f
..
58b2859
100644
(file)
--- a/
src/modest-ui-actions.c
+++ b/
src/modest-ui-actions.c
@@
-2211,11
+2211,11
@@
update_account_cb (ModestMailOperation *self,
TnyList *new_headers,
gpointer user_data)
{
TnyList *new_headers,
gpointer user_data)
{
- GObject *source;
+ ModestWindow *top;
gboolean show_visual_notifications;
gboolean show_visual_notifications;
- source = modest_mail_operation_get_source (self);
- show_visual_notifications = (source) ? FALSE : TRUE;
+ top = modest_window_mgr_get_current_top (modest_runtime_get_window_mgr ());
+ show_visual_notifications = (top) ? FALSE : TRUE;
/* Notify new messages have been downloaded. If the
send&receive was invoked by the user then do not show any
/* Notify new messages have been downloaded. If the
send&receive was invoked by the user then do not show any
@@
-2263,15
+2263,14
@@
update_account_cb (ModestMailOperation *self,
g_object_unref (actually_new_list);
}
g_object_unref (actually_new_list);
}
- if (source) {
+ if (top) {
/* Refresh the current folder in an idle. We do this
in order to avoid refresh cancelations if the
currently viewed folder is the inbox */
g_idle_add_full (G_PRIORITY_DEFAULT_IDLE,
idle_refresh_folder,
/* Refresh the current folder in an idle. We do this
in order to avoid refresh cancelations if the
currently viewed folder is the inbox */
g_idle_add_full (G_PRIORITY_DEFAULT_IDLE,
idle_refresh_folder,
- g_object_ref (source),
+ g_object_ref (top),
g_object_unref);
g_object_unref);
- g_object_unref (source);
}
}
}
}