OpenRCT2/src/openrct2-ui/windows
Michał Janiszewski be82582063 Fix EditorObjectSelection opening of TrackManager
Calling `Close()` on a window deletes its object, rendering any future
uses of its members invalid.

In this case `WindowsCloseAll` closed Editor window itself rendering
call to `ManageTracks` on a deleted pointer. Previously
`WindowsCloseAll` was called, but earlier in the same function we have
already closed all windows but Editor itself. It is sufficient to close
the editor once we have opened `TrackDesignList`.

When this got fixed, I noticed `TrackDesignList` could not locate any
rides, which was happening due to calls to `ObjectManager::UnloadAll`
in several places. Code to load the selected ride back was added.
2023-03-28 11:37:38 +02:00
..
About.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
AssetPacks.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Banner.cpp Add Object Entry Manager (#19332) 2023-02-12 20:43:11 +00:00
Changelog.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Cheats.cpp Replace remaining usages of money16, money32 (#19469) 2023-03-02 21:55:42 +00:00
ClearScenery.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
CustomCurrency.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
DebugPaint.cpp Rename snake_case Class names (Remaining Bits) (#19237) 2023-01-21 19:57:17 +00:00
DemolishRidePrompt.cpp Replace remaining usages of money16, money32 (#19469) 2023-03-02 21:55:42 +00:00
Dropdown.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
EditorBottomToolbar.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
EditorInventionsList.cpp Fix closing invention list window while holding invention 2023-03-28 11:37:37 +02:00
EditorObjectSelection.cpp Fix EditorObjectSelection opening of TrackManager 2023-03-28 11:37:38 +02:00
EditorObjectiveOptions.cpp Merge pull request #19480 from Gymnasiast/refactor/dpi-string 2023-02-28 22:27:51 +02:00
EditorScenarioOptions.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Error.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Finances.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Footpath.cpp Replace remaining usages of money16, money32 (#19469) 2023-03-02 21:55:42 +00:00
GameBottomToolbar.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Guest.cpp Fix guest window accessing members after it is deleted 2023-03-28 11:37:37 +02:00
GuestList.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
InstallTrack.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Land.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
LandRights.cpp Replace remaining usages of money16, money32 (#19469) 2023-03-02 21:55:42 +00:00
LoadSave.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Main.cpp Rename snake_case Class names (Remaining Bits) (#19237) 2023-01-21 19:57:17 +00:00
Map.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
MapGen.cpp Close #13780: Refactor MapGen to class (#19477) 2023-03-01 08:26:30 +00:00
MapTooltip.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
MazeConstruction.cpp Rename snake_case Class names (Remaining Bits) (#19237) 2023-01-21 19:57:17 +00:00
Multiplayer.cpp Merge pull request #19480 from Gymnasiast/refactor/dpi-string 2023-02-28 22:27:51 +02:00
NetworkStatus.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
NewCampaign.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
NewRide.cpp Enable Large address awareness for 32-bit builds (#19549) 2023-03-04 15:55:40 +00:00
News.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
NewsOptions.cpp Rename snake_case Class names (Remaining Bits) (#19237) 2023-01-21 19:57:17 +00:00
ObjectLoadError.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Options.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Park.cpp Replace remaining usages of money16, money32 (#19469) 2023-03-02 21:55:42 +00:00
PatrolArea.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Player.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
RefurbishRidePrompt.cpp Replace remaining usages of money16, money32 (#19469) 2023-03-02 21:55:42 +00:00
Research.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Ride.cpp Replace remaining usages of money16, money32 (#19469) 2023-03-02 21:55:42 +00:00
RideConstruction.cpp Replace remaining usages of money16, money32 (#19469) 2023-03-02 21:55:42 +00:00
RideList.cpp Replace remaining usages of money16, money32 (#19469) 2023-03-02 21:55:42 +00:00
SavePrompt.cpp Rename snake_case Class names (Remaining Bits) (#19237) 2023-01-21 19:57:17 +00:00
ScenarioSelect.cpp Merge pull request #19422 from ZehMatt/string-duplicate 2023-03-06 23:29:32 +02:00
Scenery.cpp Replace remaining usages of money16, money32 (#19469) 2023-03-02 21:55:42 +00:00
SceneryScatter.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
ServerList.cpp Merge pull request #19480 from Gymnasiast/refactor/dpi-string 2023-02-28 22:27:51 +02:00
ServerStart.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
ShortcutKeys.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Sign.cpp ObjectEntry Cleanup. FootpathItem, SceneryGroup, Water, LargeScenery (#19385) 2023-02-15 21:35:16 +00:00
Staff.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
StaffFirePrompt.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
StaffList.cpp Fix #19601: Crash hiring staff with auto placement turned off (#19602) 2023-03-09 12:04:19 +00:00
TextInput.cpp Merge pull request #19480 from Gymnasiast/refactor/dpi-string 2023-02-28 22:27:51 +02:00
Themes.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
TileInspector.cpp Fix #19503. Hide 3+ queue junction railings behind a flag (#19644) 2023-03-23 08:16:32 +00:00
TitleExit.cpp Rename snake_case Class names (Remaining Bits) (#19237) 2023-01-21 19:57:17 +00:00
TitleLogo.cpp Rename snake_case Class names (Remaining Bits) (#19237) 2023-01-21 19:57:17 +00:00
TitleMenu.cpp Drop unused variables (#19267) 2023-01-24 09:24:47 +00:00
TitleOptions.cpp Rename snake_case Class names (Remaining Bits) (#19237) 2023-01-21 19:57:17 +00:00
Tooltip.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
TopToolbar.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
TrackDesignManage.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
TrackDesignPlace.cpp Replace remaining usages of money16, money32 (#19469) 2023-03-02 21:55:42 +00:00
TrackList.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Transparency.cpp Rename snake_case Class names (Remaining Bits) (#19237) 2023-01-21 19:57:17 +00:00
ViewClipping.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Viewport.cpp Rename snake_case Class names (Remaining Bits) (#19237) 2023-01-21 19:57:17 +00:00
Water.cpp Pass DPI by ref to string drawing 2023-02-24 22:05:07 +01:00
Window.h Rename snake_case Class names (Remaining Bits) (#19237) 2023-01-21 19:57:17 +00:00