← Back to team overview

kicad-developers team mailing list archive

[PATCH] Eeschema: Set modified flag after "Append Schematic Sheet"

 

Using "Append Schematic Sheet" in Eeschema does not set the
IsModified() flag, which prevents from saving until another change is
made.
This very simple patch fixes this.

Initial report:
https://forum.kicad.info/t/unable-to-copy-components-from-one-sheet-to-another/2030

Martin
From 016b3484a17fb92367e0e59be853729af0fd0e67 Mon Sep 17 00:00:00 2001
From: Martin d'Allens <martin.dallens@xxxxxxxxxxxxx>
Date: Fri, 22 Jan 2016 17:05:43 +0100
Subject: [PATCH] Eeschema: Set modified flag after "Append Schematic Sheet"

---
 eeschema/files-io.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp
index 4ff04e2..e0a6ee6 100644
--- a/eeschema/files-io.cpp
+++ b/eeschema/files-io.cpp
@@ -447,6 +447,8 @@ bool SCH_EDIT_FRAME::AppendOneEEProject()
             bs = nextbs;
         }
     }
+    
+    OnModify();
 
     // redraw base screen (ROOT) if necessary
     GetScreen()->SetGrid( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId );
-- 
1.9.1


Follow ups