[LYN-3439] Make sure the toolbar spacer is created with a parent to prevent an empty floating window.
This commit is contained in:
@@ -1327,7 +1327,7 @@ QToolButton* MainWindow::CreateDebugModeButton()
|
||||
|
||||
QWidget* MainWindow::CreateSpacerRightWidget()
|
||||
{
|
||||
QWidget* spacer = new QWidget();
|
||||
QWidget* spacer = new QWidget(this);
|
||||
spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
spacer->setVisible(true);
|
||||
return spacer;
|
||||
|
||||
Reference in New Issue
Block a user