mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Segmentation fault fixed
This commit is contained in:
+4
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user