-
- /* If no more operations are being observed, NORMAL mode is enabled again */
- if (modest_mail_operation_queue_num_elements (modest_runtime_get_mail_operation_queue ()) == 0) {
+
+ queue = modest_runtime_get_mail_operation_queue ();
+ operations = modest_mail_operation_queue_get_by_source (queue, user_data);
+
+ /* There should be at least the current one */
+ if (!operations)
+ g_return_if_reached ();
+
+ /* Don't disable the progress hint if there are more pending
+ operations from this window */
+ if (g_slist_length (operations) == 1)