Skip to content

Commit

Permalink
Re #4282. Fixed the response to Cancel (on close) button
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Jan 13, 2012
1 parent 7363bf6 commit 405e95c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Code/Mantid/MantidPlot/src/FloatingWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,15 @@ bool FloatingWindow::event(QEvent * e)
{
if (widget() && widget()->close())
{
// forget about me and close
d_app->removeFloatingWindow(this);
}
else
{
// don't close
e->ignore();
return true;
}
}
return QMainWindow::event(e);
}
Expand Down

0 comments on commit 405e95c

Please sign in to comment.