if display became NULL (e.g. by closing a view) and we decide to activate

2005-02-08  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui.c (gui_display_changed): if display became NULL
	(e.g. by closing a view) and we decide to activate another view
	of the same image, stop the emission of the original
	"display-changed" signal so it doesn't affect the toolbox'
	UI manager. Fixes bug #159304.
This commit is contained in:
Michael Natterer
2005-02-08 17:58:28 +00:00
committed by Michael Natterer
parent 783ddf9e21
commit 0212d65047
2 changed files with 13 additions and 0 deletions

View File

@ -596,6 +596,11 @@ gui_display_changed (GimpContext *context,
if (display2->gimage == image)
{
gimp_context_set_display (context, display2);
/* stop the emission of the original signal (the emission of
* the recursive signal is finished)
*/
g_signal_stop_emission_by_name (context, "display-changed");
return;
}
}