From 75cdf9df4e6c980bdff0ed6c22ee29894efea310 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Fri, 14 Aug 2020 00:10:04 +0100 Subject: [PATCH] Don't say the board must be empty to be modified It is possible to empty a full board and have modifications that should be saved. Fixes https://gitlab.com/kicad/code/kicad/issues/3739 --- pcbnew/pcb_edit_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index c71fd0fb00..a0c6af7050 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -436,7 +436,7 @@ void PCB_EDIT_FRAME::SetPageSettings( const PAGE_INFO& aPageSettings ) bool PCB_EDIT_FRAME::IsContentModified() { - return GetScreen() && GetScreen()->IsModify() && GetBoard() && !GetBoard()->IsEmpty(); + return GetScreen() && GetScreen()->IsModify(); }