Segmentation fault fixed

This commit is contained in:
baydam
2015-01-29 20:39:49 +00:00
parent c79e873fd3
commit 6a3545ff47
4 changed files with 14 additions and 9 deletions
+4 -2
View File
@@ -1277,14 +1277,16 @@ void MainWindow::createActions()
//
// Undo action
undoAction = undoStack->createUndoAction(editMenu, tr("&Undo"));
undoAction = undoStack->createUndoAction(this, tr("&Undo"));
undoAction->setShortcut(QKeySequence::Undo);
undoAction->setIconVisibleInMenu(false);
undoAction->setShortcutContext(Qt::ApplicationShortcut);
//Redo action
redoAction = undoStack->createRedoAction(editMenu, tr("&Redo"));
redoAction = undoStack->createRedoAction(this, tr("&Redo"));
redoAction->setShortcut(QKeySequence::Redo);
redoAction->setIconVisibleInMenu(false);
redoAction->setShortcutContext(Qt::ApplicationShortcut);
// About.
aboutAction = new QAction(tr("&About"), this);