aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-debug-window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c
index a4bdd1053..ffe3fa0b6 100644
--- a/src/empathy-debug-window.c
+++ b/src/empathy-debug-window.c
@@ -1070,6 +1070,7 @@ debug_window_save_clicked_cb (GtkToolButton *tool_button,
EmpathyDebugWindow *debug_window)
{
GtkWidget *file_chooser;
+ gchar *name, *tmp;
file_chooser = gtk_file_chooser_dialog_new (_("Save"),
GTK_WINDOW (debug_window), GTK_FILE_CHOOSER_ACTION_SAVE,
@@ -1084,6 +1085,13 @@ debug_window_save_clicked_cb (GtkToolButton *tool_button,
gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (file_chooser),
g_get_tmp_dir ());
+ name = get_active_cm_name (debug_window);
+ tmp = g_strdup_printf ("%s.log", name);
+ g_free (name);
+
+ gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (file_chooser), tmp);
+ g_free (tmp);
+
g_signal_connect (file_chooser, "response",
G_CALLBACK (debug_window_save_file_chooser_response_cb),
debug_window);