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:
parent
705173a0c3
commit
bb4e6f9e51
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue