aboutsummaryrefslogtreecommitdiff
path: root/src/summary_search.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-22 06:58:44 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-22 06:58:44 +0000
commitd80a3b56dd4f6cf9a16510402b9122a75116b90c (patch)
treeb38c11535d6609e02ed670afc5616341afd4b838 /src/summary_search.c
parente86d3c6ac6d6f59a66743c5b86ca9f5a8e9b20e6 (diff)
select activated message on search dialog in summary view if possible.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@852 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/summary_search.c')
-rw-r--r--src/summary_search.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/summary_search.c b/src/summary_search.c
index a5ff8f76..be16a2ce 100644
--- a/src/summary_search.c
+++ b/src/summary_search.c
@@ -695,8 +695,11 @@ static void row_activated(GtkTreeView *treeview, GtkTreePath *path,
return;
gtk_tree_model_get(model, &iter, COL_MSGINFO, &msginfo, -1);
- msgview = messageview_create_with_new_window();
- messageview_show(msgview, msginfo, FALSE);
+ if (!summary_select_by_msginfo(main_window_get()->summaryview,
+ msginfo)) {
+ msgview = messageview_create_with_new_window();
+ messageview_show(msgview, msginfo, FALSE);
+ }
}
static gboolean row_selected(GtkTreeSelection *selection,