On showing the check names "select contact" dialog, filter properly case.
[modest] / src / hildon2 / modest-platform.c
index de5d03f..e857ca9 100644 (file)
@@ -998,7 +998,7 @@ modest_platform_run_folder_common_dialog (GtkWindow *parent_window,
                                          gchar **folder_name,
                                          TnyFolderStore **parent)
 {
-       GtkWidget *accept_btn = NULL; 
+       GtkWidget *accept_btn = NULL;
        GtkWidget *dialog, *entry = NULL, *label_entry = NULL,  *label_location = NULL, *hbox;
        GtkWidget *account_picker = NULL;
        GList *buttons = NULL;
@@ -1605,10 +1605,12 @@ modest_platform_on_new_headers_received (GList *URI_list,
        app_in_foreground = hildon_program_get_is_topmost (hildon_program_get_instance ());
        screen_on = modest_window_mgr_screen_is_on (modest_runtime_get_window_mgr ());
 
-       /* If the screen is on and the app is in the
-          foreground we don't show anything */
-       if (screen_on && app_in_foreground)
+       /* If the screen is on and the app is in the foreground we
+          don't show anything, just play a chime */
+       if (screen_on && app_in_foreground) {
+               modest_platform_play_email_tone ();
                return;
+       }
 
        if (g_list_length (URI_list) == 0)
                return;
@@ -2940,6 +2942,7 @@ on_move_to_dialog_row_activated (GtkTreeView       *tree_view,
        } else {
                move_to_dialog_set_selected_folder_store (dialog, selected);
        }
+       g_object_unref (selected);
 }
 
 static void