Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
JuPedSim
JPSeditor
Commits
43bcf4ac
Commit
43bcf4ac
authored
Oct 11, 2016
by
Erik Andresen
Browse files
small change increasing the stability of the undo/redo framework
parent
963d0a75
Changes
2
Hide whitespace changes
Inline
Side-by-side
forms/mainwindow.ui
View file @
43bcf4ac
...
...
@@ -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>
...
...
src/GraphicView.cpp
View file @
43bcf4ac
...
...
@@ -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"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment