From eda562f92e79ae18aadcf95c3b040268b5250a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Sun, 13 Dec 2015 22:25:46 +0100 Subject: [PATCH] Fixed redo binding to Ctrl+Y --- src/interface/modeler/quickapp/MainModelerWindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/interface/modeler/quickapp/MainModelerWindow.cpp b/src/interface/modeler/quickapp/MainModelerWindow.cpp index 0ab2b1b..3e0bb28 100644 --- a/src/interface/modeler/quickapp/MainModelerWindow.cpp +++ b/src/interface/modeler/quickapp/MainModelerWindow.cpp @@ -10,7 +10,6 @@ #include "RenderPreviewProvider.h" #include "RenderProcess.h" #include "RenderConfig.h" -#include "DiffManager.h" #include #include @@ -154,14 +153,14 @@ void MainModelerWindow::keyReleaseEvent(QKeyEvent *event) { } else if (event->key() == Qt::Key_Z) { if (event->modifiers() & Qt::ControlModifier) { if (event->modifiers() & Qt::ShiftModifier) { - getScenery()->getDiffManager()->redo(); + getScenery()->redo(); } else { - getScenery()->getDiffManager()->undo(); + getScenery()->undo(); } } } else if (event->key() == Qt::Key_Y) { if (event->modifiers() & Qt::ControlModifier) { - getScenery()->getDiffManager()->undo(); + getScenery()->redo(); } } }