Dans l'editeur d'elements, les changements d'orientations sont desormais annulables

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@121 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-09-10 22:11:47 +00:00
parent a2a65b78a8
commit 55c79617e1
5 changed files with 83 additions and 2 deletions

View File

@@ -487,7 +487,12 @@ void ElementScene::slot_editOrientations() {
connect(dialog_buttons, SIGNAL(rejected()), &dialog_ori, SLOT(reject()));
// lance le dialogue
if (dialog_ori.exec() == QDialog::Accepted) ori = ori_widget -> orientationSet();
if (dialog_ori.exec() == QDialog::Accepted) {
OrientationSet new_ori = ori_widget -> orientationSet();
if (new_ori != ori) {
undoStack().push(new ChangeOrientationsCommand(this, ori, new_ori));
}
}
}
void ElementScene::slot_editNames() {