From 73ac91b624e523a9d28ebb1a248b61c18523984e Mon Sep 17 00:00:00 2001 From: thrust26 Date: Thu, 4 Jun 2020 09:55:13 +0200 Subject: [PATCH] fix #648 (focus problem in debugger) --- src/debugger/DebuggerParser.cxx | 2 ++ src/debugger/gui/DebuggerDialog.cxx | 1 + 2 files changed, 3 insertions(+) diff --git a/src/debugger/DebuggerParser.cxx b/src/debugger/DebuggerParser.cxx index 253131314..9e3c0745b 100644 --- a/src/debugger/DebuggerParser.cxx +++ b/src/debugger/DebuggerParser.cxx @@ -112,6 +112,8 @@ string DebuggerParser::run(const string& command) if(validateArgs(i)) { myCommand = i; + if(commands[i].refreshRequired) + debugger.baseDialog()->saveConfig(); commands[i].executor(this); } diff --git a/src/debugger/gui/DebuggerDialog.cxx b/src/debugger/gui/DebuggerDialog.cxx index 6674311f6..be9ad7515 100644 --- a/src/debugger/gui/DebuggerDialog.cxx +++ b/src/debugger/gui/DebuggerDialog.cxx @@ -251,6 +251,7 @@ void DebuggerDialog::handleCommand(CommandSender* sender, int cmd, break; case kDDOptionsCmd: + saveConfig(); myOptions->open(); loadConfig(); break;