kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #30708
[PATCH] Set modified flag when changing layer visibility (lp:793420)
Hi,
This is a partial fix for https://bugs.launchpad.net/kicad/+bug/793420 --
addresses the issue that layer visibility changes don't mark the board as
needing a save.
-Jon
From ee6434e5691fc6f3be88cbce657dde99c3f33990 Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@xxxxxxxxxxxxx>
Date: Wed, 13 Sep 2017 22:23:27 -0400
Subject: [PATCH] Set modified flag when changing layer visibility (lp:793420)
---
pcbnew/class_pcb_layer_widget.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pcbnew/class_pcb_layer_widget.cpp b/pcbnew/class_pcb_layer_widget.cpp
index 8c39e20a6..4490c26a2 100644
--- a/pcbnew/class_pcb_layer_widget.cpp
+++ b/pcbnew/class_pcb_layer_widget.cpp
@@ -614,6 +614,8 @@ void PCB_LAYER_WIDGET::OnLayerVisible( int aLayer, bool isVisible, bool isFinal
brd->SetVisibleLayers( visibleLayers );
+ myframe->OnModify();
+
EDA_DRAW_PANEL_GAL* galCanvas = myframe->GetGalCanvas();
if( galCanvas )
--
2.11.0
Follow ups