aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/actionhandler.cpp
diff options
context:
space:
mode:
authorJochen Becher <jochen_becher@gmx.de>2016-03-10 18:36:47 +0100
committerJochen Becher <jochen_becher@gmx.de>2016-03-11 19:26:44 +0000
commitea014b8436494287ec345a18b491da2e311c2aba (patch)
treed5e24fb50fef18bee9920ab8cca7b6112c892c35 /src/plugins/modeleditor/actionhandler.cpp
parent179a28f76ddd1f1a3bf0072c623edfc1a2e0e001 (diff)
ModelEditor: Disable menu item if no diagram is open
Change-Id: I95937f4533307364b6eb1fb42ab821c825883346 Task-number: QTCREATORBUG-15853 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/modeleditor/actionhandler.cpp')
-rw-r--r--src/plugins/modeleditor/actionhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/modeleditor/actionhandler.cpp b/src/plugins/modeleditor/actionhandler.cpp
index 77895787f2..97b5829552 100644
--- a/src/plugins/modeleditor/actionhandler.cpp
+++ b/src/plugins/modeleditor/actionhandler.cpp
@@ -145,7 +145,7 @@ void ActionHandler::createActions()
menuTools->addMenu(menuModelEditor);
Core::Command *exportDiagramCommand = registerCommand(
- Constants::EXPORT_DIAGRAM, [this]() { exportDiagram(); }, Core::Context(), true,
+ Constants::EXPORT_DIAGRAM, [this]() { exportDiagram(); }, d->context, true,
tr("Export Diagram..."));
menuModelEditor->addAction(exportDiagramCommand);
d->exportDiagramAction = exportDiagramCommand->action();