From 7fe29202a21903590aad9b236dc30cb465d12584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 8 Dec 2022 13:36:22 +0100 Subject: [PATCH] Slugify filename used as default value in file_selection issue11917 review436211003 (grafted from 280447e4cdda6196fdef8183139347a03f1319cb) --HG-- branch : 6.0 --- tryton/tryton/common/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tryton/tryton/common/common.py b/tryton/tryton/common/common.py index 2485131f13..b30267cbd6 100644 --- a/tryton/tryton/common/common.py +++ b/tryton/tryton/common/common.py @@ -423,6 +423,7 @@ def file_selection(title, filename='', win.add_buttons(*buttons) win.set_icon(TRYTON_ICON) if filename: + filename = slugify(filename) if action in (Gtk.FileChooserAction.SAVE, Gtk.FileChooserAction.CREATE_FOLDER): win.set_current_name(filename)