mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -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");
|
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. */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue