From 2bd598bcfdc0adf4dc9797493de204b09f233c37 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Thu, 27 Jun 2024 11:14:12 +0000 Subject: [PATCH] plug-ins: Fix crash in Export Histogram on file save Resolves #11742 gimp_procedure_dialog_get_file_chooser () does not work with GtkFileChooserAction.SAVE enums yet. This was incorrectly left in by f5b7f734. This patch removes the command to fix a crash. --- plug-ins/python/histogram-export.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plug-ins/python/histogram-export.py b/plug-ins/python/histogram-export.py index 589b64b7b3..137f73c53a 100644 --- a/plug-ins/python/histogram-export.py +++ b/plug-ins/python/histogram-export.py @@ -170,8 +170,7 @@ def run(procedure, run_mode, image, n_layers, layers, config, data): dialog = GimpUi.ProcedureDialog.new(procedure, config, _("Histogram Export...")) - dialog.get_file_chooser ("file", Gtk.FileChooserAction.SAVE) - radio_frame = dialog.get_widget ("output-format", GimpUi.IntRadioFrame) + radio_frame = dialog.get_widget("output-format", GimpUi.IntRadioFrame) dialog.fill(None)