Commit 43bcf4ac authored by Erik Andresen's avatar Erik Andresen
Browse files

small change increasing the stability of the undo/redo framework

parent 963d0a75
......@@ -578,9 +578,6 @@
<property name="toolTip">
<string>Save CognitiveMap</string>
</property>
<property name="shortcut">
<string>Ctrl+S</string>
</property>
<property name="visible">
<bool>false</bool>
</property>
......
......@@ -1169,6 +1169,8 @@ void jpsGraphicsView::Undo()
{
if (!_undoStack.IsEmpty())
{
emit no_drawing();
const LineAction recentAction = _undoStack.GetRecentAction();
if (recentAction.GetName()=="LineDeleted")
......@@ -1196,6 +1198,8 @@ void jpsGraphicsView::Redo()
{
if (!_redoStack.IsEmpty())
{
emit no_drawing();
const LineAction recentAction = _redoStack.GetRecentAction();
if (recentAction.GetName()=="LineDeleted")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment