aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-07 09:51:55 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-07 09:51:55 +0000
commita0a0fdcef601eb96691f2230462828ecbee23fcf (patch)
treecc6db11626117663b9c0a4afa5178589b28f1b03 /src/mainwindow.c
parentfd6b862d2e6bb34e46b3e86a247188703353dbb0 (diff)
save selected attachments if mimeview has focus when 'File/Save as...' is selected.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@152 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index b89c99f2..27ac5969 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -49,6 +49,7 @@
#include "summaryview.h"
#include "summary_search.h"
#include "messageview.h"
+#include "mimeview.h"
#include "message_search.h"
#include "headerview.h"
#include "menu.h"
@@ -2586,7 +2587,13 @@ static void empty_trash_cb(MainWindow *mainwin, guint action,
static void save_as_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
{
- summary_save_as(mainwin->summaryview);
+ MessageView *messageview = mainwin->messageview;
+
+ if (messageview_get_selected_mime_part(messageview) &&
+ GTK_WIDGET_HAS_FOCUS(messageview->mimeview->ctree))
+ mimeview_save_as(messageview->mimeview);
+ else
+ summary_save_as(mainwin->summaryview);
}
static void print_cb(MainWindow *mainwin, guint action, GtkWidget *widget)