#include "inputdialog.h"
#include "timing.h"
#include "tags.h"
+#include "manage_window.h"
static GdkColor quote_colors[3] = {
{(gulong)0, (gushort)0, (gushort)0, (gushort)0},
gchar *filepath = NULL;
gchar *filedir = NULL;
gchar *tmp_filename = NULL;
+ GtkWidget *window;
+
if (uri == NULL)
return;
g_free(filename);
+ /* Pick correct window to set the file dialog "transient for" */
+ if (textview->messageview->window != NULL)
+ window = textview->messageview->window;
+ else
+ window = textview->messageview->mainwin->window;
+
+ manage_window_focus_in(window, NULL, NULL);
+
filename = filesel_select_file_save(_("Save as"), filepath);
if (!filename) {
g_free(filepath);