Created
April 15, 2018 07:46
-
-
Save Daniel-Wang/3d29551ff9d5c1cec25163a9168def64 to your computer and use it in GitHub Desktop.
Undo Command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!_app.commandStack().empty() && _app.commandStack().top()->canUndo()) { | |
_app.commandStack().top()->undo(); | |
_app.commandStack().pop(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment