Skip to content
Snippets Groups Projects
Commit 1790e678 authored by Nick Draper's avatar Nick Draper
Browse files

Added check for the workbench too.

Thanks Alice
parent 418bb4a1
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "MantidQtWidgets/Common/MantidTreeWidget.h" #include "MantidQtWidgets/Common/MantidTreeWidget.h"
#include "MantidQtWidgets/Common/MantidTreeWidgetItem.h" #include "MantidQtWidgets/Common/MantidTreeWidgetItem.h"
#include "MantidAPI/Axis.h"
#include "MantidAPI/AlgorithmManager.h" #include "MantidAPI/AlgorithmManager.h"
#include "MantidAPI/FileProperty.h" #include "MantidAPI/FileProperty.h"
#include "MantidAPI/IPeaksWorkspace.h" #include "MantidAPI/IPeaksWorkspace.h"
...@@ -115,7 +116,8 @@ void WorkspaceTreeWidgetSimple::popupContextMenu() { ...@@ -115,7 +116,8 @@ void WorkspaceTreeWidgetSimple::popupContextMenu() {
menu->addAction(m_showInstrument); menu->addAction(m_showInstrument);
m_showInstrument->setEnabled( m_showInstrument->setEnabled(
matrixWS->getInstrument() && matrixWS->getInstrument() &&
!matrixWS->getInstrument()->getName().empty()); !matrixWS->getInstrument()->getName().empty() &&
matrixWS->getAxis(1)->isSpectra());
menu->addAction(m_sampleLogs); menu->addAction(m_sampleLogs);
menu->addAction(m_sliceViewer); menu->addAction(m_sliceViewer);
menu->addAction(m_showDetectors); menu->addAction(m_showDetectors);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment