[VisualDeckEditor] Create menus before central frame to prevent Windows crash in setParent_sys (#7673)

Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
This commit is contained in:
sentry[bot] 2026-10-27 09:12:37 +01:00 • committed by GitHub
parent d42b9607c5
commit aa42cfbccc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,8 +61,8 @@ TabDeckEditorVisual::TabDeckEditorVisual(TabSupervisor *_tabSupervisor) : Abstra
{ {
setObjectName("TabDeckEditorVisual"); setObjectName("TabDeckEditorVisual");
createCentralFrame();
createMenus(); createMenus();
createCentralFrame();
installEventFilter(this); installEventFilter(this);
@ -105,7 +105,6 @@ void TabDeckEditorVisual::createCentralFrame()
centralFrame->addWidget(tabContainer); centralFrame->addWidget(tabContainer);
setCentralWidget(centralWidget); setCentralWidget(centralWidget);
setDockOptions(QMainWindow::AnimatedDocks | QMainWindow::AllowNestedDocks | QMainWindow::AllowTabbedDocks);
} }
/** @brief Updates the visual deck, analytics, and sample hand after a deck change. */ /** @brief Updates the visual deck, analytics, and sample hand after a deck change. */