1
0
mirror of https://github.com/aseprite/aseprite.git synced 2025-03-20 22:20:50 +00:00

Fix bug when closing Undo History with a keyboard shortcut

Closes 

The bug was happening because when the Undo History window was
closed using the keyboard shortcut, the message kCloseMessage
was never being sent to the window. This is probably not the
only cause, but making UndoHistoryCommand close the window instead
of just hiding it solves the problem.
This commit is contained in:
cebolan 2017-08-29 15:23:19 -04:00
parent cf3814bc20
commit e773f0697e

@ -246,7 +246,7 @@ void UndoHistoryCommand::onExecute(Context* ctx)
g_window = new UndoHistoryWindow(ctx); g_window = new UndoHistoryWindow(ctx);
if (g_window->isVisible()) if (g_window->isVisible())
g_window->setVisible(false); g_window->closeWindow(nullptr);
else else
g_window->openWindow(); g_window->openWindow();
} }