fixed selection handling in sidebar
authorVladimir Nadvornik <[email protected]>
Mon, 14 Sep 2009 21:25:10 +0000 (21:25 +0000)
committerVladimir Nadvornik <[email protected]>
Mon, 14 Sep 2009 21:25:10 +0000 (21:25 +0000)
src/bar_comment.c
src/bar_gps.c
src/bar_keywords.c

index c0fe6fe2ca19b55986f83c28f4f9c1f499715d83..0dcbee5ff0510c890975e30c07eefdbc030232ff 100644 (file)
@@ -83,11 +83,14 @@ static void bar_pane_comment_set_selection(PaneCommentData *pcd, gboolean append
        comment = text_widget_text_pull(pcd->comment_view);
 
        list = layout_selection_list(pcd->pane.lw);
+       list = file_data_process_groups_in_selection(list, FALSE, NULL);
+       
        work = list;
        while (work)
                {
                FileData *fd = work->data;
                work = work->next;
+               if (fd == pcd->fd) continue;
 
                if (append)
                        {
index c79c24b6840e04695d2969ddd336750a9bcffd3c..ef7b7642a60f3a7d8719cd42bf75c7ed1a1fcaa8 100644 (file)
@@ -326,6 +326,7 @@ static void bar_pane_gps_update(PaneGPSData *pgd)
         * Use a background process in case the user selects a large number of files.
         */
        list = layout_selection_list(pgd->pane.lw);
+       list = file_data_process_groups_in_selection(list, FALSE, NULL);
 
        if (list != NULL)
                {
index e615040cb399f29eb71b7a56b4ca27dec64ba2d2..e6f8d790c14b25d3440e3f59af6999f96502a89b 100644 (file)
@@ -366,6 +366,8 @@ static void bar_pane_keywords_set_selection(PaneKeywordsData *pkd, gboolean appe
        keywords = keyword_list_pull(pkd->keyword_view);
 
        list = layout_selection_list(pkd->pane.lw);
+       list = file_data_process_groups_in_selection(list, FALSE, NULL);
+       
        work = list;
        while (work)
                {