if (_session) {
_session->undo (n);
+ if (_session->undo_depth() == 0) {
+ undo_action->set_sensitive(false);
+ }
redo_action->set_sensitive(true);
begin_selection_op_history ();
}
if (_session) {
_session->redo (n);
- cerr << "redo depth is : " << _session->redo_depth() << endl;
if (_session->redo_depth() == 0) {
redo_action->set_sensitive(false);
}
+ undo_action->set_sensitive(true);
begin_selection_op_history ();
}
}