aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 19afdda3..d7f90d19 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -2758,9 +2758,12 @@ static void app_exit_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
static void search_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
{
- if (action == 1)
- summary_search(mainwin->summaryview);
- else
+ if (action == 1) {
+ FolderItem *item;
+
+ item = folderview_get_selected_item(mainwin->folderview);
+ summary_search(mainwin->summaryview, item);
+ } else
message_search(mainwin->messageview);
}