mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Correction d'un bug lors de la reprise du focus sur un editeur d'element : les actions Annuler et Refaire n'etaient pas activees.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@602 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1121,6 +1121,8 @@ void QETDiagramEditor::slot_updateActions() {
|
|||||||
if (dv) {
|
if (dv) {
|
||||||
if (can_update_actions) {
|
if (can_update_actions) {
|
||||||
undo_group.setActiveStack(&(dv -> diagram() -> undoStack()));
|
undo_group.setActiveStack(&(dv -> diagram() -> undoStack()));
|
||||||
|
undo -> setEnabled(undo_group.canUndo());
|
||||||
|
redo -> setEnabled(undo_group.canRedo());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
undo -> setEnabled(false);
|
undo -> setEnabled(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user