Skip to content

Commit

Permalink
Delay apparition of 'busy' cursor. Re #3784.
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellTaylor committed Jan 13, 2012
1 parent fe7698b commit 97c4a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/MantidPlot/src/Mantid/MantidUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1780,10 +1780,10 @@ void MantidUI::manageMantidWorkspaces()
*/
InstrumentWindow* MantidUI::getInstrumentView(const QString & wsName, int tab)
{
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
if( !Mantid::API::AnalysisDataService::Instance().doesExist(wsName.toStdString()) ) return NULL;
MatrixWorkspace_const_sptr ws = boost::dynamic_pointer_cast<const MatrixWorkspace>(getWorkspace(wsName));
if (!ws) return NULL;
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
Mantid::Geometry::Instrument_const_sptr instr = ws->getInstrument();
if (!instr || instr->getName().empty())
{
Expand Down

0 comments on commit 97c4a5f

Please sign in to comment.