From 048d3d6686bd7415239efd671c1bca29687f23b5 Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 25 Aug 2024 00:23:53 +0200 Subject: [PATCH] IdeDebugger: fix loading watch display format from session --- ide/packages/idedebugger/debugger.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ide/packages/idedebugger/debugger.pp b/ide/packages/idedebugger/debugger.pp index 8571232064..a121a80ff6 100644 --- a/ide/packages/idedebugger/debugger.pp +++ b/ide/packages/idedebugger/debugger.pp @@ -6932,7 +6932,7 @@ procedure TIdeWatch.DoLoadDisplayFormatFromXMLConfig(const AConfig: TXMLConfig; var s: String; begin - s := LowerCase(AConfig.GetValue(APath+AOldPath, 'wdfDefault')); + s := LowerCase(AConfig.GetValue(AOldPath, 'wdfDefault')); if s <> 'wdfdefault' then begin ADisplayFormat := ParseOldDispFormat(s); end @@ -7144,7 +7144,7 @@ begin then Include(FEvaluateFlags, defFunctionCallRunAllThreads) else Exclude(FEvaluateFlags, defFunctionCallRunAllThreads); - DoLoadDisplayFormatFromXMLConfig(AConfig, APath + 'DisplayStyle', '/Value', FDisplayFormat); + DoLoadDisplayFormatFromXMLConfig(AConfig, APath + 'DisplayFormat', APath + 'DisplayStyle/Value', FDisplayFormat); FRepeatCount := AConfig.GetValue(APath + 'RepeatCount', 0);