summaryrefslogtreecommitdiffstats
path: root/src/designer/src/designer
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-09-14 18:34:28 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-09-15 10:41:05 +0200
commitb5da5f522616f99b000ed1c64a5cc1de0c3f8937 (patch)
tree8003ce44649d58ebac64479c157355ab047c6cac /src/designer/src/designer
parentdb8e1b5d926cce2eba2d558eca9535e43ba32957 (diff)
Designer: Fix a crash on startup when built without clipboard
Pick-to: 5.15 Change-Id: I4559c14316d63325554466c710ef0d8017e5876f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/designer/src/designer')
-rw-r--r--src/designer/src/designer/qdesigner_actions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/designer/src/designer/qdesigner_actions.cpp b/src/designer/src/designer/qdesigner_actions.cpp
index 642fc5e46..4b98d6493 100644
--- a/src/designer/src/designer/qdesigner_actions.cpp
+++ b/src/designer/src/designer/qdesigner_actions.cpp
@@ -296,9 +296,11 @@ QDesignerActions::QDesignerActions(QDesignerWorkbench *workbench)
m_editActions->addAction(createSeparator(this));
+#if QT_CONFIG(clipboard)
m_editActions->addAction(formWindowManager->action(QDesignerFormWindowManagerInterface::CutAction));
m_editActions->addAction(formWindowManager->action(QDesignerFormWindowManagerInterface::CopyAction));
m_editActions->addAction(formWindowManager->action(QDesignerFormWindowManagerInterface::PasteAction));
+#endif
m_editActions->addAction(formWindowManager->action(QDesignerFormWindowManagerInterface::DeleteAction));
m_editActions->addAction(formWindowManager->action(QDesignerFormWindowManagerInterface::SelectAllAction));