Skip to content

Commit

Permalink
use use_undo=false for [do_command]
Browse files Browse the repository at this point in the history
...if we are already in a synced_context.

undoing usually also removes things from the replay, so we cannot undo things if the don't put things in the replay.
  • Loading branch information
gfgtdf committed May 18, 2014
1 parent 71cf3e9 commit aed6d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/synced_context.cpp
Expand Up @@ -90,7 +90,7 @@ bool synced_context::run_in_synced_context_if_not_already(const std::string& com
}
else
{
return it->second(data, use_undo, show, error_handler);
return it->second(data, /*use_undo*/ false, show, error_handler);
}
}
default:
Expand Down

0 comments on commit aed6d94

Please sign in to comment.