aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-11 06:10:57 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-11 06:10:57 +0000
commitcaf18276da32a76cef4559bbf6b410a7c0e557c9 (patch)
treed77c8bec9fd88984797548590c1eb1f8375fbf3a /src/mainwindow.c
parent1ef33ad10764f0bf1786e455a12422aa428e9e3c (diff)
open search folder property on virtual folder with '/Edit/Search messages...'.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@884 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index d9d8a1db..337e9eca 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -71,6 +71,7 @@
#include "prefs_account.h"
#include "prefs_summary_column.h"
#include "prefs_template.h"
+#include "prefs_search_folder.h"
#include "action.h"
#include "account.h"
#include "account_dialog.h"
@@ -2801,7 +2802,10 @@ static void search_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
FolderItem *item;
item = folderview_get_selected_item(mainwin->folderview);
- summary_search(item);
+ if (item && item->stype == F_VIRTUAL)
+ prefs_search_folder_open(item);
+ else
+ summary_search(item);
} else
message_search(mainwin->messageview);
}