Skip to content

Commit

Permalink
Refs #10488 Don't show context menu on whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Nov 4, 2014
1 parent 54b2932 commit 4c42d36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/MantidQt/CustomInterfaces/src/QtReflMainView.cpp
Expand Up @@ -192,6 +192,10 @@ namespace MantidQt
*/
void QtReflMainView::showContextMenu(const QPoint& pos)
{
//If the user didn't right-click on anything, don't show a context menu.
if(!ui.viewTable->indexAt(pos).isValid())
return;

//parent widget takes ownership of QMenu
QMenu* menu = new QMenu(this);
menu->addAction(ui.actionProcess);
Expand Down

0 comments on commit 4c42d36

Please sign in to comment.