Fix BoxLayerWidget::addTopButton.

Regression was introduced in c468f8b3c6.
This commit is contained in:
John Preston 2022-06-07 11:09:42 +04:00
parent 72940a25e3
commit 81b9028e1c

View file

@ -286,7 +286,7 @@ void BoxLayerWidget::addLeftButton(object_ptr<AbstractButton> button) {
} }
void BoxLayerWidget::addTopButton(object_ptr<AbstractButton> button) { void BoxLayerWidget::addTopButton(object_ptr<AbstractButton> button) {
_topButton = base::make_unique_q<AbstractButton>(button.release()); _topButton = base::unique_qptr<AbstractButton>(button.release());
const auto raw = _topButton.get(); const auto raw = _topButton.get();
raw->setParent(this); raw->setParent(this);
raw->show(); raw->show();