Fixed errors in the previous commit.

This commit is contained in:
Pietro Gagliardi 2015-05-18 15:27:56 -04:00
parent 8b3b0c4baa
commit 33d6609675
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,6 @@
// TODO
// - comctl5 on real windows: tabs get drawn behind checkbox
// - moving page 1 out doesn't actually move it out
struct tab {
uiTab t;
@ -167,6 +166,8 @@ static void tabDelete(uiTab *tt, uintmax_t n)
// and keep the page control alive
uiControlSetParent(page->control, NULL);
// and show it again, as we don't know where it will go next
uiControlContainerShow(page->control);
uiFree(page);
}