Fix Editor crash in test teardown calling set_view_pane_layout
If Atom isn't initialized and able to produce a ViewportContext, the Editor would crash. This attempts to make the initialization fail a bit more gracefully and fixes the crash in the cases I've tested.
This commit is contained in:
@@ -1234,7 +1234,6 @@ void MainWindow::InitActions()
|
||||
// View actions
|
||||
am->AddAction(ID_VIEW_OPENVIEWPANE, tr("Open View Pane"));
|
||||
am->AddAction(ID_VIEW_CONSOLEWINDOW, tr(LyViewPane::ConsoleMenuName))
|
||||
.SetShortcut(tr("^"))
|
||||
.SetReserved()
|
||||
.SetStatusTip(tr("Show or hide the console window"))
|
||||
.SetCheckable(true)
|
||||
|
||||
Reference in New Issue
Block a user