Fix crash showing color popups that cannot be pinned

This commit is contained in:
David Capello 2016-12-05 11:02:53 -03:00
parent 105cbe4d58
commit 5eb402c494

View File

@ -91,8 +91,10 @@ ColorPopup::ColorPopup(bool canPin)
break;
}
}
m_topBox.addChild(new BoxFiller);
m_topBox.addChild(closeButton);
if (closeButton) {
m_topBox.addChild(new BoxFiller);
m_topBox.addChild(closeButton);
}
}
m_vbox.addChild(&m_topBox);