forked from qt-creator/qt-creator
Squish: Fix setRunInTerminal for 1-target-projects
This fix just removes the dependency to the scrollArea that exists when there are more than 1 targets but is missing when there's only 1 target available. Change-Id: I02594aa5226f53ffaa5e3693b8075f5ef88c5f88 Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
This commit is contained in:
@@ -114,6 +114,6 @@ def switchToBuildOrRunSettingsFor(targetCount, currentTarget, projectSettings, i
|
|||||||
def setRunInTerminal(targetCount, currentTarget, runInTerminal=True):
|
def setRunInTerminal(targetCount, currentTarget, runInTerminal=True):
|
||||||
switchViewTo(ViewConstants.PROJECTS)
|
switchViewTo(ViewConstants.PROJECTS)
|
||||||
switchToBuildOrRunSettingsFor(targetCount, currentTarget, ProjectSettings.RUN)
|
switchToBuildOrRunSettingsFor(targetCount, currentTarget, ProjectSettings.RUN)
|
||||||
ensureChecked("{container=':Qt Creator.scrollArea_QScrollArea' text='Run in terminal'\
|
ensureChecked("{window=':Qt Creator_Core::Internal::MainWindow' text='Run in terminal'\
|
||||||
type='QCheckBox' unnamed='1' visible='1'}", runInTerminal)
|
type='QCheckBox' unnamed='1' visible='1'}", runInTerminal)
|
||||||
switchViewTo(ViewConstants.EDIT)
|
switchViewTo(ViewConstants.EDIT)
|
||||||
|
Reference in New Issue
Block a user