mirror of https://github.com/GNOME/gimp.git
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:
parent
8fdeaddbe7
commit
6c1a0e8be7
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue