Skip to content

Instantly share code, notes, and snippets.

@Daniel-Wang
Created April 15, 2018 07:46
Show Gist options
  • Save Daniel-Wang/3d29551ff9d5c1cec25163a9168def64 to your computer and use it in GitHub Desktop.
Save Daniel-Wang/3d29551ff9d5c1cec25163a9168def64 to your computer and use it in GitHub Desktop.
Undo Command
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