From 8b7583e62867eea3b46f55b298ce6cbc8bb7994a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 8 Jun 2021 23:04:28 +0200 Subject: [PATCH] fix: Save As command was never executed --- source/views/view_hexeditor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/views/view_hexeditor.cpp b/source/views/view_hexeditor.cpp index e25ba3927..be908c949 100644 --- a/source/views/view_hexeditor.cpp +++ b/source/views/view_hexeditor.cpp @@ -538,12 +538,12 @@ namespace hex { } bool ViewHexEditor::handleShortcut(bool keys[512], bool ctrl, bool shift, bool alt) { - if (ctrl && keys['S']) { - save(); - return true; - } else if (ctrl && shift && keys['S']) { + if (ctrl && shift && keys['S']) { saveAs(); return true; + } else if (ctrl && keys['S']) { + save(); + return true; } if (ImGui::Begin(View::toWindowName("hex.view.hexeditor.name").c_str())) {