app: gui_free_progress() should accept any GimpProcess widget.

Simply it should free only GimpProgressDialog as these would be
dedicated dialog (with no meaning once progression is done), and leave
alone other GimpProgress widgets. In any case, it should not output
CRITICAL errors on these.

Fixing the following CRITICAL:
> GIMP-CRITICAL: gui_free_progress: assertion 'GIMP_IS_PROGRESS_DIALOG (progress)' failed

When dropping an image on the toolbox.
This commit is contained in:
Jehan 2021-05-06 00:07:37 +02:00
parent 8fdeaddbe7
commit 6c1a0e8be7
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ static void
gui_free_progress (Gimp *gimp,
GimpProgress *progress)
{
g_return_if_fail (GIMP_IS_PROGRESS_DIALOG (progress));
g_return_if_fail (GIMP_IS_PROGRESS (progress));
if (GIMP_IS_PROGRESS_DIALOG (progress))
gtk_widget_destroy (GTK_WIDGET (progress));