diff options
author | Jochen Becher <jochen_becher@gmx.de> | 2016-03-10 18:36:47 +0100 |
---|---|---|
committer | Jochen Becher <jochen_becher@gmx.de> | 2016-03-11 19:26:44 +0000 |
commit | ea014b8436494287ec345a18b491da2e311c2aba (patch) | |
tree | d5e24fb50fef18bee9920ab8cca7b6112c892c35 /src/plugins/modeleditor/actionhandler.cpp | |
parent | 179a28f76ddd1f1a3bf0072c623edfc1a2e0e001 (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.cpp | 2 |
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(); |