diff --git a/Gems/ScriptCanvas/Code/Editor/View/Windows/MainWindow.cpp b/Gems/ScriptCanvas/Code/Editor/View/Windows/MainWindow.cpp index 778ad9d5b7..ee36fc4212 100644 --- a/Gems/ScriptCanvas/Code/Editor/View/Windows/MainWindow.cpp +++ b/Gems/ScriptCanvas/Code/Editor/View/Windows/MainWindow.cpp @@ -154,6 +154,7 @@ #include #include +#include namespace ScriptCanvasEditor { @@ -4305,9 +4306,14 @@ namespace ScriptCanvasEditor m_forceCloseInProgress = true; QMessageBox::critical(this, QString(), QObject::tr ("The ScriptCanvas Editor has encountered an external bug which prevents it from tracking the file state.

" - "Likely the Asset Processor has crashed. ScriptCanvas files may have saved successfully, but the O3DE Engine and Asset Processor should be restarted before continuing work.")); + "The ScriptCanvas files in the process of being saved may have saved successfully.

Closing this window will close " + "the ScriptCanvas Editor, and request a launch of the Asset Processor.
" + "Verify that the Asset Processor or is running before launching the ScriptCanvas Editor again.
" + "The status of the Asset Processor can be monitored from the O3DE Editor in the bottom-right corner of the status bar.")); + + AzFramework::AssetSystem::LaunchAssetProcessor(); AZ::SystemTickBus::Handler::BusDisconnect(); - qobject_cast(parent())->close(); + AzToolsFramework::CloseViewPane(LyViewPane::ScriptCanvas); } void MainWindow::OnCommandStarted(AZ::Crc32)