UI: Don't try to make OBSBasic parent of ControlsSplitButton

Passing the parent of a QLayout sets it directly as the top-level layout
(as per the QLayout docs). This is obviously not what is intended here.
Luckily it doesn't even work since the main window of course already has
a layout which would need to be explicitly removed before, but it makes
Qt yell at us for trying.
This commit is contained in:
gxalpha
2023-03-11 09:38:46 +11:00
committed by Matt Gajownik
parent 705173a0c3
commit bb4e6f9e51
+1 -1
View File
@@ -67,7 +67,7 @@ static QWidget *getNextWidget(QBoxLayout *container, QLayoutItem *item)
ControlsSplitButton::ControlsSplitButton(const QString &text,
const QVariant &themeID,
void (OBSBasic::*clicked)())
: QHBoxLayout(OBSBasic::Get())
: QHBoxLayout()
{
button.reset(new QPushButton(text));
button->setCheckable(true);