From bfa70c1f258188648f124a9bc7a4c8baf0e4ba67 Mon Sep 17 00:00:00 2001 From: Matthew Budd Date: Fri, 13 Nov 2020 11:47:55 -0500 Subject: [PATCH] Bug fix for Qt debugger attempting to save symbol/bookmarks at window close with no game loaded. --- src/drivers/Qt/ConsoleDebugger.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/drivers/Qt/ConsoleDebugger.cpp b/src/drivers/Qt/ConsoleDebugger.cpp index 26686ee7..ddb28ba1 100644 --- a/src/drivers/Qt/ConsoleDebugger.cpp +++ b/src/drivers/Qt/ConsoleDebugger.cpp @@ -2480,7 +2480,10 @@ void saveGameDebugBreakpoints(void) { return; } - getGameDebugBreakpointFileName( stmp ); + if ( getGameDebugBreakpointFileName( stmp ) ) + { + return; + } //printf("Debug Save File: '%s' \n", stmp ); @@ -2616,7 +2619,10 @@ void loadGameDebugBreakpoints(void) printf("No Debug Windows Open: Skipping loading of breakpoint data\n"); return; } - getGameDebugBreakpointFileName( stmp ); + if ( getGameDebugBreakpointFileName( stmp ) ) + { + return; + } //printf("Debug Load File: '%s' \n", stmp );