mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-20 18:40:57 +00:00
Fix crash when Aseprite is being closed
This commit is contained in:
parent
373a64aa20
commit
e0caca3567
@ -78,6 +78,12 @@ void UIContext::setActiveView(DocView* docView)
|
||||
{
|
||||
MainWindow* mainWin = App::instance()->mainWindow();
|
||||
|
||||
// This can happen when the main window is being destroyed when we
|
||||
// close the app, and the active view is changing because we are
|
||||
// closing down every single tab.
|
||||
if (!mainWin)
|
||||
return;
|
||||
|
||||
// Prioritize workspace for user input.
|
||||
App::instance()->inputChain().prioritize(mainWin->getWorkspace(), nullptr);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user