SceneSwitcher/lib
WarmUpTill 82568b23e8
Some checks failed
debian-build / build (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled
Fix crash when initially setting up tab ordering
The tabOrder vector was initialized with the size of tabNames.
Then new tabs were registered with AddSetupTabCallback() causing
tabNames to grow but tabOrder to remain the same.

Usually this is not a problem as LoadTabOrder() will be called which
ensures that their sizes are in sync.

However, when using a fresh OBS install or one with a corrupted scene
configuration file, the on_save() callbacks are called before any
loading callbacks.
With the sizes of tabNames and tabOrder not being in sync this would
lead to a crash.

Fixed by adding a tabWidgetOrderValid() check within SaveTabOrder()
before iterating over both vectors.
The tabWidgetOrderValid() was expanded to check the sizes of both
vectors.
Additionally the tabOrder initialization was moved from global static
initialization to function local static initialization to ensure that
potential preceeding calls to AddSetupTabCallback() will be taken into
account when setting up the tabOrder vector.
2025-07-06 10:19:20 +02:00
..
legacy Cleanup 2025-05-27 22:37:46 +02:00
linux Add support for kwin (wayland) (#1393) 2025-06-21 19:51:25 +02:00
macro Refactor locking of macro segments 2025-06-20 22:29:35 +02:00
osx Restructure library and plugins 2024-01-27 14:10:34 +01:00
queue Fix UI issues when opening ItemSettingsDialogs 2025-03-09 20:05:07 +01:00
utils Fix crash when initially setting up tab ordering 2025-07-06 10:19:20 +02:00
variables Export symbols 2025-06-09 14:20:44 +02:00
win Restructure library and plugins 2024-01-27 14:10:34 +01:00
advanced-scene-switcher.cpp Cleanup includes 2025-03-30 14:01:41 +02:00
advanced-scene-switcher.hpp Fix tempvars being reset across macros for cached widgets 2025-06-12 21:29:07 +02:00
general.cpp Add option to disable widget caching 2025-05-27 22:37:46 +02:00
platform-funcs.hpp Restructure library and plugins 2024-01-27 14:10:34 +01:00
switcher-data.cpp Set default hotkey for new macro to CTRL + N 2025-06-01 11:57:26 +02:00
switcher-data.hpp Add option to disable widget caching 2025-05-27 22:37:46 +02:00
version.h Restructure library and plugins 2024-01-27 14:10:34 +01:00