Commit 8f35f9d5 authored by Danny Hindson's avatar Danny Hindson Committed by Peterson, Peter
Browse files

Fix unreliable test_matrixworkspacedisplay_view test

Add parent to QMenu objects so they get deleted when the parent
matrix workspace view gets deleted
parent f0020c64
......@@ -147,13 +147,13 @@ class MatrixWorkspaceDisplayView(QTabWidget):
return True if reply == QMessageBox.Yes else False
def setup_bin_context_menu(self, table):
context_menu = QMenu()
context_menu = QMenu(self)
self.setup_copy_bin_actions(context_menu, table)
self.setup_plot_bin_actions(context_menu, table)
return context_menu
def setup_spectra_context_menu(self, table):
context_menu = QMenu()
context_menu = QMenu(self)
self.setup_copy_spectrum_actions(context_menu, table)
self.setup_plot_spectrum_actions(context_menu, table)
return context_menu
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment