mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
[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:
parent
d42b9607c5
commit
aa42cfbccc
1 changed files with 1 additions and 2 deletions
|
|
@ -61,8 +61,8 @@ TabDeckEditorVisual::TabDeckEditorVisual(TabSupervisor *_tabSupervisor) : Abstra
|
|||
{
|
||||
setObjectName("TabDeckEditorVisual");
|
||||
|
||||
createCentralFrame();
|
||||
createMenus();
|
||||
createCentralFrame();
|
||||
|
||||
installEventFilter(this);
|
||||
|
||||
|
|
@ -105,7 +105,6 @@ void TabDeckEditorVisual::createCentralFrame()
|
|||
|
||||
centralFrame->addWidget(tabContainer);
|
||||
setCentralWidget(centralWidget);
|
||||
setDockOptions(QMainWindow::AnimatedDocks | QMainWindow::AllowNestedDocks | QMainWindow::AllowTabbedDocks);
|
||||
}
|
||||
|
||||
/** @brief Updates the visual deck, analytics, and sample hand after a deck change. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue