Skip to content

Commit

Permalink
re #7062 Fixed cursor state when messagebox shown
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDraper committed May 14, 2013
1 parent fb30a48 commit daba637
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,9 @@ void UnwrappedSurface::findAndCorrectUGap()
double bin_width = fabs(m_u_max - m_u_min) / (nbins - 1);
if (bin_width == 0.0)
{
QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor));
QMessageBox::warning(NULL, tr("MantidPLot - Instrument view error"), tr("Failed to build unwrapped surface"));
QApplication::restoreOverrideCursor();
m_u_min = 0.0;
m_u_max = 1.0;
return;
Expand Down

0 comments on commit daba637

Please sign in to comment.