diff -r src/extract_dialog.c srcmine/extract_dialog.c 117,121c117,125 < < /* FIXME, does not work correctly when there are more dots in a filename then the one identifying the extention */ < gchar **filename_components = g_strsplit(g_path_get_basename(lsq_archive_get_filename(archive)), ".", 2); < gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), filename_components[0]); < g_strfreev(filename_components); --- > gchar *fn = g_path_get_basename(lsq_archive_get_filename(archive)); > gchar *tarpos = g_strrstr(fn, ".tar"); > gchar *endpos = g_strrstr(fn, "."); > if (tarpos != NULL) { > *tarpos = 0; > } else if (endpos != NULL) { > *endpos = 0; > } > gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), fn);