forked from qt-creator/qt-creator
Squish: Fix invoking context menu sub items
Change-Id: I7d498ac3d4e2e2d25b3c504a95f96e434d0d1619 Reviewed-by: Robert Loehning <robert.loehning@digia.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
committed by
Christian Stenger
parent
c937226db1
commit
7c9d2e3a1a
@@ -274,7 +274,8 @@ def invokeContextMenuItem(editorArea, command1, command2 = None):
|
||||
ctxtMenu = openContextMenuOnTextCursorPosition(editorArea)
|
||||
activateItem(waitForObjectItem(objectMap.realName(ctxtMenu), command1, 2000))
|
||||
if command2:
|
||||
activateItem(waitForObjectItem(objectMap.realName(ctxtMenu), command2, 2000))
|
||||
activateItem(waitForObjectItem("{type='QMenu' visible='1' window=%s}"
|
||||
% objectMap.realName(ctxtMenu), command2, 2000))
|
||||
|
||||
# this function invokes the "Find Usages" item from context menu
|
||||
# param editor an editor object
|
||||
|
Reference in New Issue
Block a user