Squish: Fix openVcsLog() when an OutputWindow is already shown

Change-Id: I47432b7367f238a92921bffb030eada902327bd5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2016-10-12 12:50:35 +02:00
parent 8acca9f37b
commit 169723dd87

View File

@@ -628,6 +628,8 @@ def openVcsLog():
"window=':Qt Creator_Core::Internal::MainWindow'}", 2000) "window=':Qt Creator_Core::Internal::MainWindow'}", 2000)
if className(foundObj) != 'Core::OutputWindow': if className(foundObj) != 'Core::OutputWindow':
raise Exception("Found derived class, but not a pure QPlainTextEdit.") raise Exception("Found derived class, but not a pure QPlainTextEdit.")
waitForObject("{text='Version Control' type='QLabel' unnamed='1' visible='1' "
"window=':Qt Creator_Core::Internal::MainWindow'}", 2000)
except: except:
invokeMenuItem("Window", "Output Panes", "Version Control") invokeMenuItem("Window", "Output Panes", "Version Control")