Fixed redo binding to Ctrl+Y

This commit is contained in:
Michaël Lemaire 2015-12-13 22:25:46 +01:00
parent 84ecb99b12
commit eda562f92e

View file

@ -10,7 +10,6 @@
#include "RenderPreviewProvider.h"
#include "RenderProcess.h"
#include "RenderConfig.h"
#include "DiffManager.h"
#include <QQmlEngine>
#include <QGuiApplication>
@ -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();
}
}
}