From a1da660741acff35c4446f548e1e465d8f00012d Mon Sep 17 00:00:00 2001 From: Abel Umenhoffer Date: Sun, 6 Jul 2025 18:08:31 -0700 Subject: [PATCH] Fix Carla breaking GUI on Wayland #7582 (#7966) --- src/gui/instrument/InstrumentTrackWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/instrument/InstrumentTrackWindow.cpp b/src/gui/instrument/InstrumentTrackWindow.cpp index f6a0d6955..c293d6be7 100644 --- a/src/gui/instrument/InstrumentTrackWindow.cpp +++ b/src/gui/instrument/InstrumentTrackWindow.cpp @@ -294,10 +294,10 @@ InstrumentTrackWindow::InstrumentTrackWindow( InstrumentTrackView * _itv ) : vlayout->addWidget( m_pianoView ); setModel( _itv->model() ); - updateInstrumentView(); - QMdiSubWindow* subWin = getGUI()->mainWindow()->addWindowedWidget( this ); + updateInstrumentView(); + // The previous call should have given us a sub window parent. Therefore // we can reuse this method. updateSubWindow();