Jump to content

[SOLVED] Can't remove tab in WidgetTabBox


photo

Recommended Posts

Hi,

This code crashes:

	while (tabbox->getNumTabs()) {
		Log::message("   %d\n", tabbox->getNumTabs()); // the number of tabs will not go down...
		tabbox->removeTab(0);
	}

How can I remove all tabs (and their content)?

Thanks.

Link to comment

Never mind, I found the culprit: myself. I was trying to remove the tab from a callback triggered by a widget in the tab itself. (and of course I repeated the mistake in my test before submitting).

  • Thanks 1
Link to comment
  • silent changed the title to [SOLVED] Can't remove tab in WidgetTabBox
×
×
  • Create New...