Stop backend_startup_project from erasing the last project in a VS solution

if it is not the specified project.
This commit is contained in:
Luke Elliott 2021-11-23 08:28:24 +00:00 committed by Jussi Pakkanen
parent bfa0c61877
commit 39856daf9a
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
## backend_startup_project
`backend_startup_project` will no longer erase the last project in a VS
solution if it is not the specified project.

View File

@ -467,7 +467,7 @@ class Vs2010Backend(backends.Backend):
# Put the startup project first in the project list
if startup_idx:
projlist = [projlist[startup_idx]] + projlist[0:startup_idx] + projlist[startup_idx + 1:-1]
projlist.insert(0, projlist.pop(startup_idx))
return projlist