summaryrefslogtreecommitdiff
path: root/ldmicro/ldmicro.cpp
diff options
context:
space:
mode:
authorakshay-c2019-12-16 11:09:46 +0530
committerakshay-c2019-12-16 11:09:46 +0530
commit89ac0ff09bcf77bb0d6d3158746d97b916d1935c (patch)
tree3097c9f0f56917d39a1d5e4c1aa3c8522c104f3d /ldmicro/ldmicro.cpp
parent8794ca93788a8aa75911fe799748dc043510047d (diff)
downloadLDmicroQt-89ac0ff09bcf77bb0d6d3158746d97b916d1935c.tar.gz
LDmicroQt-89ac0ff09bcf77bb0d6d3158746d97b916d1935c.tar.bz2
LDmicroQt-89ac0ff09bcf77bb0d6d3158746d97b916d1935c.zip
Comment dialog Bugfix;Toolbar disable during simulation;Code cleanup;
Diffstat (limited to 'ldmicro/ldmicro.cpp')
-rw-r--r--ldmicro/ldmicro.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ldmicro/ldmicro.cpp b/ldmicro/ldmicro.cpp
index 8e5d758..fa5ea5a 100644
--- a/ldmicro/ldmicro.cpp
+++ b/ldmicro/ldmicro.cpp
@@ -294,9 +294,12 @@ void ProgramChanged(void)
}
#define CHANGING_PROGRAM(x) { \
+ if(!InSimulationMode) \
+ { \
UndoRemember(); \
x; \
ProgramChanged();\
+ } \
}
//-----------------------------------------------------------------------------