Squish: Remove unreachable code

Change-Id: Idc9ced7cbac247cd9333e56be6f78bab70b542f9
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2019-03-19 15:00:35 +01:00
parent 89c86cee8d
commit 25f5c26306

View File

@@ -78,8 +78,6 @@ def menuVisibleAtEditor(editor, menuInList):
return True
return False
menu = waitForObject("{type='QMenu' unnamed='1' visible='1'}", 500)
if platform.system() == 'Darwin':
menu.activateWindow()
success = menu.visible and widgetContainsPoint(editor, menu.mapToGlobal(QPoint(0, 0)))
if success:
menuInList[0] = menu