From e773f0697ef33cd4a32b79941866ccaf08ee9514 Mon Sep 17 00:00:00 2001 From: cebolan <2458684+cebolan@users.noreply.github.com> Date: Tue, 29 Aug 2017 15:23:19 -0400 Subject: [PATCH] Fix bug when closing Undo History with a keyboard shortcut Closes #1423 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. --- src/app/commands/cmd_undo_history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/commands/cmd_undo_history.cpp b/src/app/commands/cmd_undo_history.cpp index f0acff67e..99b2b48ae 100644 --- a/src/app/commands/cmd_undo_history.cpp +++ b/src/app/commands/cmd_undo_history.cpp @@ -246,7 +246,7 @@ void UndoHistoryCommand::onExecute(Context* ctx) g_window = new UndoHistoryWindow(ctx); if (g_window->isVisible()) - g_window->setVisible(false); + g_window->closeWindow(nullptr); else g_window->openWindow(); }